.page {
  --section-title-size: clamp(2.25rem, 3.8vw, 3.75rem);
  background: #fff;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 2.5rem;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.section-kicker--light {
  color: #fff;
}

.page-heading {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--night-950);
  border-bottom: 1px solid var(--night-500);
}

.page-heading__image,
.page-heading::before,
.page-heading::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-heading__image {
  z-index: -3;
  object-fit: cover;
  object-position: center 55%;
}

.page-heading::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 18, 37, 0.97) 0%, rgba(8, 23, 44, 0.92) 45%, rgba(10, 25, 47, 0.66) 76%, rgba(10, 25, 47, 0.43) 100%),
    linear-gradient(0deg, rgba(6, 18, 37, 0.52), transparent 62%);
  content: "";
}

.page-heading::after {
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(45deg, transparent 49.55%, rgba(255,255,255,0.045) 49.7%, rgba(255,255,255,0.045) 50.3%, transparent 50.45%);
  background-size: 7rem 7rem;
  content: "";
  opacity: 0.45;
}

.page-heading__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.75rem, 6vw, 5rem);
}

.page-heading__content {
  max-width: 74rem;
}

.page-heading .section-kicker {
  color: rgba(255,255,255,0.92);
}

.page-heading .section-kicker::before {
  background: var(--accent);
}

.page-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 5.8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.page-heading__lead {
  max-width: 60rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.65;
}

.text-link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.page--diagnostic #entretien,
.page--diagnostic #diagnostic {
  scroll-margin-top: var(--header-space);
}

.service-list__header h2 {
  margin: 0;
  color: var(--heading);
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}


/* Shared text-and-image sections for service pages. */
.service-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 7vw, 7rem);
  background: #fff;
}
.service-section__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.service-section__copy,
.service-section__visual {
  min-width: 0;
}
.service-section__copy h2 {
  margin: 0;
  color: var(--heading);
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.06;
}
.service-section__copy > p:not(.section-kicker) {
  margin: 1.5rem 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}
.service-section__copy > p + p {
  margin-top: 1.2rem;
}
.service-section__copy h3 {
  margin: 1.75rem 0 0;
  color: var(--heading);
  font-size: 1.2rem;
  letter-spacing: normal;
  line-height: 1.3;
}
.service-section__copy h3 + p {
  margin-top: 0.65rem;
}
.service-section__visual {
  position: relative;
  margin: 0;
}
.service-section__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}
.service-section__visual figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.service-section__visual--cutout img {
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgba(23, 23, 21, 0.18));
}
.service-section--reverse .service-section__copy {
  grid-column: 2;
  grid-row: 1;
}
.service-section--reverse .service-section__visual {
  grid-column: 1;
  grid-row: 1;
}
.service-section--dark {
  color: #fff;
  background: var(--night-850);
}
.service-section--dark::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,0.045) 49.7%, rgba(255,255,255,0.045) 50.3%, transparent 50.4%);
  background-size: 9rem 9rem;
  content: "";
  opacity: 0.45;
}
.service-section--dark h2,
.service-section--dark .section-kicker {
  color: #fff;
}
.service-section--dark .section-kicker::before {
  background: var(--accent);
}
.service-section--dark .service-section__copy > p:not(.section-kicker) {
  color: rgba(255,255,255,0.8);
}
.service-section--soft {
  background: #f4f3f0;
}
.service-section--soft + .service-list {
  border-top: 1px solid #dedcd7;
}
@media (max-width: 56rem) {
  .service-section__grid,
  .page--contact .contact-section__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .service-section--reverse .service-section__copy,
  .service-section--reverse .service-section__visual {
    grid-column: auto;
    grid-row: auto;
  }
  .service-section__visual img {
    max-height: 28rem;
  }
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(0.2rem);
}

.service-list {
  padding-block: clamp(5rem, 8vw, 7.5rem);
  background: #f4f3f0;
}

.service-list__header,
.warranty-section__header,
.performance-gallery__header,
.branches-section__header {
  width: 100%;
  max-width: none;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

@media (min-width: 56.0625rem) {
  .service-list__header h2,
  .warranty-section__header h2,
  .performance-gallery__header h2,
  .contact-map__header h2,
  .branches-section__header h2 {
    white-space: nowrap;
  }
}

.service-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: #d9d7d2;
  list-style: none;
  border: 1px solid #d9d7d2;
}

.service-list__item {
  min-height: 22rem;
  padding: clamp(2rem, 3.2vw, 3.25rem);
  background: #fff;
}

.service-list__icon {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 2rem;
  color: var(--accent);
  border: 1px solid rgba(230,29,29,0.28);
  border-radius: 50%;
  background: rgba(230,29,29,0.045);
}

.service-list__icon svg {
  width: 2rem;
  height: 2rem;
}

.service-list__item h3 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-list__item p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.service-list__item a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.page--transmission .page-heading__image {
  object-position: center 48%;
}

.warranty-section__header h2 {
  margin: 0;
  color: var(--heading);
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.warranty-section {
  padding-block: clamp(5rem, 8vw, 8rem);
  background: #fff;
}

.warranty-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: #d9d7d2;
}

.warranty-card {
  position: relative;
  min-height: 21rem;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  background: #f7f6f3;
}

.warranty-card--featured {
  color: #fff;
  background: var(--night-950);
}

.warranty-card--featured::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,0.045) 49.7%, rgba(255,255,255,0.045) 50.3%, transparent 50.4%);
  background-size: 8rem 8rem;
  content: "";
  opacity: 0.45;
}

.warranty-card__number {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 2.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.warranty-card h3,
.warranty-card p {
  position: relative;
  z-index: 1;
}

.warranty-card h3 {
  max-width: 30rem;
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.warranty-card p {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.68;
}

.warranty-card--featured p {
  color: rgba(255,255,255,0.76);
}

.warranty-card--featured h3 {
  color: #fff;
}

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

.service-list--transmission .service-list__item {
  min-height: 19rem;
}

.page--differential .page-heading__image {
  object-position: center 57%;
}

.page--performance .page-heading__image {
  object-position: center 57%;
}

.performance-gallery__header h2 {
  margin: 0;
  color: var(--heading);
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.performance-gallery {
  padding-block: clamp(5rem, 8vw, 8rem);
  background: #fff;
}

.performance-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.performance-gallery__item {
  aspect-ratio: 4 / 3;
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--night-950);
}

.performance-gallery__item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 62%, rgba(230,29,29,0.13));
  content: "";
}

.performance-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease;
}

.performance-gallery__item:hover img {
  transform: scale(1.025);
}

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

.service-list--performance .service-list__item {
  min-height: 19rem;
}

@media (min-width: 50.0625rem) {
.page--diagnostic .service-list__header h2,
.service-list--performance .service-list__header h2 {
    white-space: nowrap;
  }
}

.page--contact .page-heading__image {
  object-position: center 48%;
}

.contact-section {
  padding-block: clamp(5rem, 8vw, 8rem);
  background: #f4f3f0;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.92fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.contact-section__details > h2,
.contact-form-panel > h2,
.contact-map__header h2,
.branches-section__header h2 {
  margin: 0;
  color: var(--heading);
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.contact-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1px;
  background: #d9d7d2;
}

.contact-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  min-width: 0;
  padding: 1.5rem;
  background: #fff;
}

.contact-method__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(230,29,29,0.25);
  border-radius: 50%;
  background: rgba(230,29,29,0.045);
}

.contact-method__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-method h3,
.opening-hours h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  letter-spacing: normal;
  line-height: 1.3;
}

.contact-method p,
.contact-method address,
.contact-method a {
  overflow-wrap: anywhere;
}

.contact-method p,
.contact-method address {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.55;
}

.contact-method a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.contact-method a:hover,
.branch-card a:hover {
  color: var(--accent);
}

.contact-method__map-link {
  text-decoration: underline !important;
  text-decoration-color: rgba(230,29,29,0.45) !important;
  text-underline-offset: 0.25em;
}

.opening-hours {
  padding: 1.5rem;
  background: #fff;
}

.opening-hours__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.opening-hours dl {
  margin: 1.75rem 0 0 4rem;
}

.opening-hours dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding-block: 0.9rem;
  border-top: 1px solid #e2e0dc;
}

.opening-hours dt {
  font-weight: 700;
}

.opening-hours dd {
  margin: 0;
  color: var(--muted);
}

.opening-hours dd span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
}

.contact-form-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem);
  color: #fff;
  background: var(--night-950);
  box-shadow: 0 1.5rem 3.5rem rgba(23,23,21,0.15);
}

.contact-form-panel::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,0.045) 49.7%, rgba(255,255,255,0.045) 50.3%, transparent 50.4%);
  background-size: 8rem 8rem;
  content: "";
  opacity: 0.42;
}

.contact-form-panel > * {
  position: relative;
  z-index: 1;
}

.contact-form-panel > h2 {
  color: #fff;
  font-size: clamp(2.25rem, 3.8vw, 3.6rem);
}

.contact-form-panel__intro {
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-form__field {
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form label span {
  color: rgba(255,255,255,0.6);
  font-size: 0.84rem;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  color: #fff;
  background: rgba(255,255,255,0.055);
  font: inherit;
}

.contact-form input {
  min-height: 3.35rem;
  padding: 0.8rem 1rem;
}

.contact-form textarea {
  min-height: 10rem;
  padding: 1rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(230,29,29,0.2);
  outline-offset: 1px;
}

.contact-form__submit {
  width: fit-content;
  min-height: 3.5rem;
  margin-top: 0.35rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form__submit:hover {
  color: var(--accent);
  background: #fff;
}

.contact-form__privacy {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-map {
  padding-block: clamp(5rem, 8vw, 8rem) 0;
  background: #fff;
}

.contact-map__header {
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.contact-map__frame {
  position: relative;
  height: clamp(27rem, 48vw, 42rem);
  overflow: hidden;
  background: #dedcd7;
}

.contact-map__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(1) contrast(0.92);
}

.branches-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 8vw, 8rem);
  color: #fff;
  background: var(--night-950);
}

.branches-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(45deg, transparent 49.6%, rgba(255,255,255,0.045) 49.7%, rgba(255,255,255,0.045) 50.3%, transparent 50.4%);
  background-size: 9rem 9rem;
  content: "";
  opacity: 0.42;
}

.branches-section__inner {
  position: relative;
}

.branches-section__header h2 {
  color: #fff;
}

.branches-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(255,255,255,0.16);
}

.branch-card {
  min-width: 0;
  min-height: 23rem;
  padding: clamp(2rem, 3.5vw, 3.5rem);
  background: rgba(255,255,255,0.025);
}

.branch-card__number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.branch-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: normal;
}

.branch-card address,
.branch-card p,
.branch-card a {
  overflow-wrap: anywhere;
}

.branch-card address,
.branch-card p {
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.65;
}

.branch-card > a {
  display: block;
  margin-top: 0.65rem;
  color: #fff;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.branch-card p a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 64rem) {

.service-list__grid {
    grid-template-columns: 1fr;
  }

.service-list__item {
    min-height: 0;
  }

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

.service-list--transmission .service-list__item {
    min-height: 18rem;
  }

.contact-section__grid {
    gap: 3.5rem;
  }

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

.branch-card {
    min-height: 0;
  }
}

@media (max-width: 50rem) {

.page-heading__image {
    object-position: 60% center;
  }

  .page-heading::before {
    background:
      linear-gradient(90deg, rgba(6, 18, 37, 0.95), rgba(10, 25, 47, 0.74)),
      linear-gradient(0deg, rgba(6, 18, 37, 0.58), transparent 58%);
  }

.page-heading h1 {
    font-size: clamp(2.8rem, 12vw, 4.3rem);
  }

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

.warranty-section__grid,
.service-list--transmission .service-list__grid,
.service-list--performance .service-list__grid,
.performance-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

.performance-gallery__grid {
    grid-template-rows: none;
  }

.contact-map__frame {
    height: 28rem;
  }

.warranty-card,
.service-list--transmission .service-list__item,
.service-list--performance .service-list__item {
    min-height: 0;
  }
}

@media (max-width: 32rem) {

.section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

.page-heading__inner {
    padding-block: 3.25rem;
  }

.page-heading__lead {
    font-size: 1rem;
    line-height: 1.55;
  }

.service-list__header h2,
.warranty-section__header h2,
.performance-gallery__header h2,
.contact-section__details > h2,
.contact-map__header h2,
.branches-section__header h2 {
    font-size: var(--section-title-size);
  }

.warranty-card {
    padding: 2.25rem 1.5rem;
  }

.contact-form-panel {
    padding: 2.25rem 1.5rem;
  }

.opening-hours dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

.contact-map__frame {
    height: 24rem;
  }

.service-list__item {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

.text-link::after,
.performance-gallery__item img {
    transition: none;
  }
}
