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

:root {
  --primary: #1a76bc;
  --secondary: #06a79f;
  --dark: #241e20;
  --light: #f5f7fb;
  --muted: #eef3f8;
  --border: rgba(26, 118, 188, 0.15);
  --shadow: 0 15px 40px rgba(36, 30, 32, 0.08);
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, #f9fbff 0%, #eef4fb 50%, #f9fbff 100%);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  margin: 0 0 12px;
  line-height: 1.2;
  color: var(--dark);
}

p {
  margin: 0 0 16px;
}

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

.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.close-nav {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(36, 30, 32, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.close-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(36, 30, 32, 0.16);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 19, 32, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.brand .logo {
  height: 46px;
}

.main-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(26, 118, 188, 0.08);
}

.header-actions {
  display: none;
  gap: 14px;
  align-items: center;
}

.cta-desktop {
  display: inline-flex;
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  justify-self: end;
}

.lang-switcher button {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher button.active {
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.15), rgba(6, 167, 159, 0.18));
  color: var(--dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 25px rgba(26, 118, 188, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 118, 188, 0.35);
}

.btn.outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn.outline:hover {
  background: rgba(26, 118, 188, 0.08);
}

.btn.ghost {
  background: rgba(26, 118, 188, 0.08);
  color: var(--primary);
}

.section {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle,
.lead {
  color: rgba(36, 30, 32, 0.78);
}

.hero {
  padding: 140px 0 120px;
  background: radial-gradient(circle at 10% 20%, rgba(26, 118, 188, 0.08), transparent 30%), radial-gradient(circle at 90% 10%, rgba(6, 167, 159, 0.08), transparent 30%), linear-gradient(120deg, #f7fbff 0%, #eef4fb 50%, #f9fbff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: min(26vw, 260px);
  height: min(26vw, 260px);
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.35), rgba(26, 118, 188, 0));
  mask-image: url('/img/hero-01.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/img/hero-01.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -40px;
  width: min(26vw, 260px);
  height: min(26vw, 260px);
  background: linear-gradient(315deg, rgba(6, 167, 159, 0.3), rgba(6, 167, 159, 0));
  mask-image: url('/img/hero-02.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/img/hero-02.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.lead {
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(26, 118, 188, 0.08);
}

.trust-badges img {
  width: 18px;
  height: 18px;
}

.trust-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  mask: url('/img/symbol.png') center / contain no-repeat;
  -webkit-mask: url('/img/symbol.png') center / contain no-repeat;
}

.icon-certifies { mask: url('/img/symbols/certifies.svg') center / contain no-repeat; -webkit-mask: url('/img/symbols/certifies.svg') center / contain no-repeat; }
.icon-delais { mask: url('/img/symbols/delais.svg') center / contain no-repeat; -webkit-mask: url('/img/symbols/delais.svg') center / contain no-repeat; }
.icon-persons { mask: url('/img/symbols/persons.svg') center / contain no-repeat; -webkit-mask: url('/img/symbols/persons.svg') center / contain no-repeat; }

.hero-visual {
  position: relative;
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  box-shadow: 0 20px 45px rgba(36, 30, 32, 0.14);
  border: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.08), rgba(6, 167, 159, 0.08));
}

.slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.slide-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 10px 14px;
  background: rgba(36, 30, 32, 0.82);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
}

.slideshow-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.slideshow-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 118, 188, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
  line-height: 0;
}

.slideshow-dots button.active {
  background: var(--primary);
  transform: scale(1.1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.service-card,
.why-card,
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card::after,
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(26, 118, 188, 0.08), transparent 40%);
  pointer-events: none;
}

.service-card:hover,
.why-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(36, 30, 32, 0.16);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.15), rgba(6, 167, 159, 0.18));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.icon-circle img {
  width: 18px;
  height: 18px;
}

.service-icon {
  --service-icon: url('/img/symbol.png');
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.18), rgba(6, 167, 159, 0.2));
  position: relative;
}

.service-icon::before {
  content: '';
  width: 22px;
  height: 22px;
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  mask: var(--service-icon) center / contain no-repeat;
  -webkit-mask: var(--service-icon) center / contain no-repeat;
}

.icon-chauffage { --service-icon: url('/img/symbols/chauffage.svg'); }
.icon-sanitaire { --service-icon: url('/img/symbols/sanitaire.svg'); }
.icon-ventilation { --service-icon: url('/img/symbols/ventilation.svg'); }
.icon-climatisation { --service-icon: url('/img/symbols/climatisation.svg'); }
.icon-qualite { --service-icon: url('/img/symbols/qualite.svg'); }
.icon-communication { --service-icon: url('/img/symbols/communication.svg'); }
.icon-luxembourg { --service-icon: url('/img/symbols/luxembourg.svg'); }
.icon-rapide { --service-icon: url('/img/symbols/rapide.svg'); }

.service-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: rgba(36, 30, 32, 0.78);
}

.service-card li {
  margin-bottom: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.filters button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filters button.active {
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.12), rgba(6, 167, 159, 0.12));
  border-color: rgba(26, 118, 188, 0.35);
  color: var(--dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.16), rgba(6, 167, 159, 0.14));
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 30, 32, 0) 0%, rgba(36, 30, 32, 0.55) 100%);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(36, 30, 32, 0.16);
}

.project-content {
  position: relative;
  color: #fff;
  z-index: 1;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 10px;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card blockquote {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: rgba(36, 30, 32, 0.9);
}

.testimonial-meta {
  font-weight: 700;
  color: var(--primary);
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(36, 30, 32, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, padding 0.24s ease;
  padding: 0 18px;
  color: rgba(36, 30, 32, 0.78);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 18px 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: start;
}

.contact-info {
  padding: 20px;
}

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

.contact-details .label {
  display: block;
  font-weight: 700;
  color: var(--primary);
}

.contact-details .value {
  font-weight: 600;
}

.contact-form form {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hp-row {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.hp-field {
  display: none;
}

.form-row input,
.form-row textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 118, 188, 0.15);
}

.error {
  color: #b3261e;
  font-size: 0.9rem;
  min-height: 18px;
}

.form-message {
  margin-top: 10px;
  font-weight: 700;
  color: var(--secondary);
}

.response-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(6, 167, 159, 0.12);
  font-weight: 700;
  color: var(--dark);
}

.legal {
  background: #fff;
}

.legal-body {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(135deg, rgba(26, 118, 188, 0.06), rgba(6, 167, 159, 0.06));
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 50px 0 20px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 10px;
}

#footer {
  background: #0f1320;
  color: #fff;
}

#footer h3 {
  color: #fff;
}

#footer a {
  color: #dfe9ff;
  display: inline-block;
  margin-bottom: 8px;
}

.cookie-note {
  color: #d2d9e8;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 26px;
  font-size: 0.95rem;
  color: #d2d9e8;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 20px rgba(36, 30, 32, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top img {
  width: 16px;
  height: 16px;
}

.nav-open {
  overflow: hidden;
}

body.nav-open .main-nav a {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 960px) {
  .nav-bar {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
  }

  .nav-links-wrapper {
    position: fixed;
    inset: 0;
    padding: 80px 18px 28px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.3s ease;
    z-index: 95;
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 50px rgba(36, 30, 32, 0.2);
    overflow-y: hidden;
    transform-origin: top;
    min-height: 1500px;
  }

  body.nav-open .nav-links-wrapper {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .close-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 96;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 14px 14px;
    font-size: 1.02rem;
    background: rgba(26, 118, 188, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(26, 118, 188, 0.12);
  }

  .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .lang-switcher {
    width: auto;
    justify-content: flex-end;
  }

  .btn.primary {
    width: 100%;
  }

  .cta-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-overlay {
    top: 0;
  }

  .hero {
    padding-top: 120px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .trust-badges {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .nav-bar {
    gap: 12px;
  }
}
