:root {
  --bg: #ffffff;
  --text: #161b28;
  --muted: #5f6878;
  --line: #dfe7ea;
  --soft: #f5f8f9;
  --soft-2: #eef7f7;
  --teal: #009b9d;
  --teal-dark: #007d80;
  --lime: #bedc33;
  --shadow: 0 24px 60px rgba(24, 38, 54, 0.11);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 86px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 231, 234, 0.8);
  backdrop-filter: blur(18px);
  animation: headerDrop 520ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  color: var(--teal);
}

.brand-text strong {
  display: block;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 0.95;
}

.brand-text strong span {
  color: var(--teal);
}

.brand-text small {
  display: block;
  margin-top: 7px;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 58px);
  color: #202737;
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 3px;
  content: "";
  background: var(--teal);
  transition: width 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

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

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #273042;
  font-size: 0.91rem;
  font-weight: 600;
  white-space: nowrap;
}

.phone-link svg,
.contact-info svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-link svg {
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 155, 157, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--teal-dark);
}

.btn-secondary {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: calc(100vh - 86px);
  max-height: 760px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.4) 58%, rgba(255,255,255,0.03) 100%),
    linear-gradient(0deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(690px, 54vw);
  padding: clamp(54px, 8vw, 110px) clamp(24px, 6vw, 86px);
  background: transparent;
  animation: heroCopyUp 780ms 120ms cubic-bezier(.16,1,.3,1) both;
}

.hero-copy h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(3.2rem, 5.3vw, 5.9rem);
  font-weight: 800;
  line-height: 0.96;
}

.hero-copy p {
  max-width: 560px;
  margin: 28px 0 0;
  color: #444d5d;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.hero-media {
  position: absolute;
  inset: 0;
  min-width: 0;
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: heroImageIn 1200ms ease both;
}

.section {
  padding: clamp(54px, 7vw, 90px) clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 34px;
  text-align: center;
}

.section-head.align-left {
  text-align: left;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.05;
}

.section-head p,
.zones p,
.form-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.service-card {
  min-width: 0;
  transition: transform 220ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
}

.service-image {
  overflow: hidden;
  aspect-ratio: 1.65 / 1;
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 420ms ease, box-shadow 220ms ease;
}

.service-card:hover .service-image {
  box-shadow: 0 18px 36px rgba(24, 38, 54, 0.13);
  transform: scale(1.025);
}

.service-image-1 { background-image: url("assets/service-residentiel.png"); }
.service-image-2 { background-image: url("assets/service-bureaux.png"); }
.service-image-3 { background-image: url("assets/service-apres-travaux.png"); }
.service-image-4 { background-image: url("assets/service-profondeur.png"); }
.service-image-5 { background-image: url("assets/service-entretien-regulier.png"); }

.service-card h3 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  font-size: 1.11rem;
  line-height: 1.25;
}

.service-card h3::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  content: "";
  background: var(--teal);
}

.service-card p {
  margin: 0;
  color: #5e6876;
  font-size: 0.93rem;
  line-height: 1.62;
}

.process {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 30px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: linear-gradient(90deg, #f8fafb, #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-title h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  line-height: 1.15;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1050px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 10px 22px;
  border-left: 1px solid #cfd8dd;
}

.process-steps strong {
  color: var(--teal);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
}

.process-steps span {
  color: #5c6674;
  font-size: 0.83rem;
  line-height: 1.48;
}

.process-steps b {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.9rem;
}

.trust {
  padding-top: 34px;
  padding-bottom: 34px;
}

.trust-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 38px;
  max-width: var(--max);
  margin: 0 auto;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #3e4654;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: transform 180ms ease, color 180ms ease;
}

.trust-item:hover {
  color: var(--text);
  transform: translateY(-3px);
}

.trust-item svg {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 132px);
  border-left: 1px solid #cfd8dd;
}

.metrics div {
  padding: 8px 20px;
  border-right: 1px solid #cfd8dd;
}

.metrics strong {
  display: block;
  color: var(--teal);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 220ms ease;
}

.metrics div:hover strong {
  transform: translateY(-2px);
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: #4f5968;
  font-size: 0.82rem;
  line-height: 1.35;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(540px, 1.08fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.93) 45%, rgba(255,255,255,0.7) 100%),
    url("assets/chrono-clean-hero.png");
  background-size: cover;
  background-position: center bottom;
  border-top: 1px solid var(--line);
}

.zones {
  align-self: center;
}

.zones h2 {
  position: relative;
  padding-bottom: 16px;
}

.zones h2::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  content: "";
  background: var(--teal);
}

.zones ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.zones li {
  position: relative;
  padding-left: 26px;
  color: #334052;
  font-size: 0.95rem;
  font-weight: 600;
}

.zones li::before {
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 12px;
  height: 12px;
  content: "";
  border: 3px solid var(--teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-self: stretch;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-card {
  padding: clamp(24px, 3vw, 38px);
}

.form-card h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
}

form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #485365;
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6e0e4;
  border-radius: 0;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 43px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 155, 157, 0.12);
}

.form-card .btn {
  justify-self: start;
  min-height: 44px;
  margin-top: 3px;
  padding-inline: 23px;
  font-size: 0.78rem;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
  background: var(--teal);
}

.contact-photo {
  min-height: 210px;
  background-image: url("assets/service-residentiel.png");
  background-size: cover;
  background-position: 74% 42%;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(.16,1,.3,1), transform 720ms cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}

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

.service-card.reveal:nth-child(2),
.trust-item.reveal:nth-child(2),
.process-steps li.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.service-card.reveal:nth-child(3),
.trust-item.reveal:nth-child(3),
.process-steps li.reveal:nth-child(3) {
  transition-delay: 160ms;
}

.service-card.reveal:nth-child(4),
.trust-item.reveal:nth-child(4),
.process-steps li.reveal:nth-child(4) {
  transition-delay: 240ms;
}

.service-card.reveal:nth-child(5),
.trust-item.reveal:nth-child(5),
.process-steps li.reveal:nth-child(5) {
  transition-delay: 320ms;
}

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

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

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

.contact-info {
  display: grid;
  gap: 10px;
  padding: 28px;
  color: #fff;
}

.contact-info svg {
  width: 30px;
  height: 30px;
}

.contact-info strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.contact-info span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #697384;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-header.is-open {
    grid-template-columns: 1fr auto;
  }

  .site-header.is-open .main-nav {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 16px;
  }

  .site-header.is-open .header-actions {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero-copy {
    min-height: auto;
    width: min(720px, 100%);
    padding-top: 72px;
    padding-bottom: 50px;
  }

  .hero-media img {
    min-height: 420px;
    object-position: 58% center;
  }

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

  .process,
  .trust-layout,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    padding-inline: 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: 1.35rem;
  }

  .brand-text small {
    font-size: 0.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
    max-width: 100%;
  }

  .hero {
    min-height: calc(100vh - 76px);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 38%, rgba(255,255,255,0.25) 72%, rgba(255,255,255,0.08) 100%),
      linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
  }

  .hero-actions,
  .header-actions {
    width: 100%;
  }

  .btn,
  .phone-link {
    width: 100%;
  }

  .hero-media img {
    min-height: 100%;
    object-position: 66% center;
  }

  .service-grid,
  .trust-points,
  .process-steps,
  .zones ul,
  .form-row,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .process-steps li {
    border-left: 0;
    border-top: 1px solid #cfd8dd;
    padding-inline: 0;
  }

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

  .metrics div {
    border-right: 0;
    border-top: 1px solid #cfd8dd;
    padding-left: 0;
  }

  .contact-band {
    padding-inline: 16px;
  }

  .contact-panel {
    box-shadow: 0 18px 42px rgba(24, 38, 54, 0.1);
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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