/* Responsive corrections kept separate so the optimized production stylesheet remains intact. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (min-width: 981px) {
  .service-copy-inner {
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: clamp(24px, 3svh, 34px);
    padding-top: 92px;
    padding-bottom: 48px;
  }

  .service-copy-inner > .b-kicker,
  #espaces-verts .service-copy-inner > .b-kicker,
  #nettoyage .service-copy-inner > .b-kicker {
    align-self: auto;
    margin-bottom: 0;
    transform: none;
  }

  .service-panel--copy-right .b-kicker span {
    order: -1;
    margin: 0 12px 3px 0;
  }

  .service-main {
    align-self: auto;
  }

  #espaces-verts .service-link,
  #nettoyage .service-link {
    align-self: auto;
    transform: none;
  }

  .service-detail-grid {
    margin-top: 28px;
    margin-bottom: 26px;
  }
}

@media (max-width: 980px) {
  .service-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-panel .service-copy {
    order: 1;
    min-height: 700px;
  }

  .service-copy::before {
    display: none;
  }

  .service-panel .service-media {
    order: 2;
    height: 52svh;
    min-height: 0;
  }

  .service-copy::after,
  .service-panel--copy-left .service-copy::after,
  .service-panel--copy-right .service-copy::after {
    inset: auto auto -64px 0;
    width: 100%;
    height: 65px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform: none;
  }

  .service-panel--copy-right .service-copy::after {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
  }

  .service-copy-inner,
  .service-panel--copy-left .service-copy-inner,
  .service-panel--copy-right .service-copy-inner {
    flex: none;
    width: min(720px, calc(100% - 56px));
    min-width: 0;
    margin-inline: auto;
    padding: 132px 0 94px;
  }

  .service-copy h1,
  .service-copy h2 {
    width: auto;
    max-width: 100%;
    text-shadow: none;
  }

  .service-panel--copy-right .service-copy h2,
  .service-panel--copy-right .service-intro {
    margin-left: 0;
    text-align: left;
  }

  .service-panel--copy-right .service-link {
    margin-left: 0;
  }

  .service-panel--copy-right .b-kicker {
    justify-content: flex-start;
  }

  .service-panel--copy-right .b-kicker span {
    order: -1;
    margin: 0 12px 3px 0;
  }

  .service-link {
    max-width: 100%;
    gap: 18px;
  }

  .service-link span {
    flex: none;
  }
}

@media (max-width: 760px) {
  .service-copy h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .service-copy h2 {
    font-size: clamp(43px, 13.4vw, 64px);
    letter-spacing: -.06em;
  }
}

@media (max-width: 380px) {
  .service-copy h1 {
    font-size: clamp(44px, 14.5vw, 55px);
  }

  .service-copy h2 {
    font-size: clamp(40px, 12.7vw, 48px);
  }
}

/* Consistent dark select styling, including Firefox. */
.contact-form select {
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 46px;
  background-color: #102f40;
  background-image: linear-gradient(45deg, transparent 50%, #a8d8e2 50%), linear-gradient(135deg, #a8d8e2 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}

.contact-form select:hover {
  border-color: rgba(112, 202, 214, .72);
  background-color: #12384b;
}

.contact-form select:focus {
  border-color: #70cad6;
  box-shadow: 0 0 0 3px rgba(112, 202, 214, .16);
}

.contact-form select option {
  background: #0b2535;
  color: white;
}

.contact-form select option:checked {
  background: #168fc5;
  color: white;
}

.form-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}
