:root {
  --red: #d71920;
  --red-dark: #a90f16;
  --black: #111111;
  --ink: #252525;
  --muted: #5f6368;
  --line: #e9e9e9;
  --soft: #f8f8f8;
  --soft-warm: #fbfbfb;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(17, 17, 17, 0.10);
  --shadow-soft: 0 12px 28px rgba(17, 17, 17, 0.06);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.brand-logo {
  width: min(260px, 52vw);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: var(--radius);
  color: #333333;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: #fff0f1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-size: 24px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.22);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-dark {
  color: var(--white);
  background: var(--black);
}

.btn-dark:hover {
  background: #2a2a2a;
  box-shadow: var(--shadow-soft);
}

.btn-light {
  color: var(--black);
  background: var(--white);
  border-color: var(--line);
}

.btn-light:hover {
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  min-height: clamp(620px, 76vh, 760px);
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 46%, rgba(215, 25, 32, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12)),
    url("assets/images/chauffage-technique.webp") center / cover;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--red);
}

.hero-content {
  max-width: 760px;
  padding: 82px 0;
  animation: heroIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  line-height: 1.12;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 780px;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--soft);
}

.section-red {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.14), transparent 48%),
    var(--red);
}

.section-red h2,
.section-red p {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(32px, 5vw, 50px);
}

.section-head p,
.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-red .lead {
  color: rgba(255, 255, 255, 0.9);
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 50px;
}

.split-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.premium-intro .split-image,
.gallery-teaser .teaser-gallery {
  transform: translateZ(0);
}

.split-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.logo-display {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  background: var(--white);
}

.logo-display img {
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.value-card,
.review-card,
.gallery-card,
.contact-panel,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.value-card:hover,
.review-card:hover,
.gallery-card:hover,
.contact-panel:hover,
.form-panel:hover {
  border-color: rgba(215, 25, 32, 0.18);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 268px;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.service-card:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.025);
}

.service-card .content,
.gallery-card .content,
.review-card,
.value-card,
.contact-panel,
.form-panel {
  padding: 26px;
}

.service-card h3,
.value-card h3,
.gallery-card h3 {
  font-size: 23px;
}

.service-card p,
.value-card p,
.review-card p,
.gallery-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.trust-strip {
  padding: 34px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article {
  padding: 0 28px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.trust-grid article:last-child {
  border-right: 0;
}

.trust-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-weight: 900;
  font-size: 13px;
}

.trust-grid strong {
  display: block;
  color: var(--black);
  font-size: 18px;
}

.trust-grid p {
  margin: 6px 0 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  text-align: center;
  line-height: 24px;
  font-weight: 900;
}

.page-hero {
  padding: 78px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.42)),
    url("assets/images/sanitaire-hero.webp") center / cover;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.service-detail {
  padding: 34px;
  border-left: 5px solid var(--red);
  background: var(--white);
}

.service-detail + .service-detail {
  margin-top: 28px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.gallery-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item.is-entering {
  opacity: 0;
  transform: translateY(12px);
}

.gallery-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-media::after {
  content: "Agrandir";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(17, 17, 17, 0.78);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.teaser-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 14px;
}

.teaser-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
}

.teaser-gallery img:first-child {
  grid-row: 1 / 3;
}

.gallery-card:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.03);
}

.gallery-card:hover .gallery-media::after {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.84);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1080px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(17, 17, 17, 0.72);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.stars {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 2px;
}

.review-card strong {
  display: block;
  margin-top: 18px;
  color: var(--black);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--black);
  font-weight: 800;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(215, 25, 32, 0.18);
  border-color: var(--red);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list strong {
  display: block;
  color: var(--black);
}

.map {
  overflow: hidden;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.mobile-call {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.14), transparent 34%),
    #0f0f10;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-grid article:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 640px;
  }

  .hero::before {
    background:
      radial-gradient(circle at 50% 20%, rgba(215, 25, 32, 0.20), transparent 38%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.56)),
      url("assets/images/chauffage-technique.webp") center / cover;
  }

  .section {
    padding: 68px 0;
  }

  .split-image img {
    height: 340px;
  }

  .mobile-call {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    max-width: 190px;
    font-size: 11px;
  }

  .brand-logo {
    width: min(210px, 58vw);
    height: 50px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 56px 0;
  }

  .hero p,
  .page-hero p,
  .section-head p,
  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-tags span {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card img,
  .gallery-card img,
  .split-image img {
    height: 270px;
  }

  .teaser-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 230px);
  }

  .teaser-gallery img:first-child {
    grid-row: auto;
  }

  .gallery-toolbar {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }

  .page-hero {
    padding: 58px 0;
  }

  .map,
  .map iframe {
    min-height: 340px;
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
