/* COULEURS ET RÉGLAGES COMMUNS */
:root {
  --background: #f8f6f7;
  --text: #171c23;
  --blue: #214ca5;
  --orange: #f47c0b;
  --red: #dc3825;
  --red-hover: #c82820;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 24px;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 7px;
}

.contact-page {
  width: 100%;
  max-width: 940px;
  text-align: center;
}

/* LOGO ET COLLABORATION */
.logo-frame {
  position: relative;
  width: min(570px, 100%);
  aspect-ratio: 360 / 88;
  overflow: hidden;
  margin: 0 auto;
}

.logo-frame img {
  display: block;
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.collaboration {
  margin: 25px 0 0;
  font-size: 28px;
  line-height: 1.4;
  color: var(--blue);
}

.collaboration strong {
  color: var(--orange);
  font-weight: 700;
}

/* CONTACT ET BOUTON */
.contact {
  margin-top: 46px;
}

.contact h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

.phone {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 180ms ease;
}

.phone:hover {
  color: var(--red);
}

.contact-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
  min-width: 311px;
  min-height: 83px;
  margin: 39px auto 0;
  padding: 23px 33px;
  border: 1px solid var(--red);
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  overflow: hidden;
  transition:
    background 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease,
    gap 250ms ease;
}

.contact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, #ffffff24 48%, transparent 76%);
  transform: translateX(-110%);
  transition: transform 550ms ease;
  pointer-events: none;
}

.button-arrow {
  width: 0;
  opacity: 0;
  flex: none;
  transform: translateX(-5px);
  transition: width 250ms ease, opacity 250ms ease, transform 250ms ease;
}

@media (hover: hover) {
  .contact-button:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    box-shadow: 0 10px 22px #b027222b;
    transform: translateY(-3px);
    gap: 12px;
  }

  .contact-button:hover::before {
    transform: translateX(110%);
  }

  .contact-button:hover .button-arrow {
    width: 23px;
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 9px #b0272220;
}

/* PHOTOS */
.services-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
  width: 100%;
  max-width: 865px;
  margin: 60px auto 0;
}

.service-photo {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TABLETTE ET MOBILE */
@media (max-width: 700px) {
  body {
    padding: 45px 22px;
  }

  .logo-frame {
    width: min(460px, 100%);
  }

  .collaboration {
    font-size: 21px;
    margin-top: 22px;
  }

  .contact {
    margin-top: 35px;
  }

  .contact h1 {
    font-size: 26px;
    letter-spacing: -0.4px;
  }

  .phone {
    font-size: 30px;
    margin-top: 18px;
  }

  .contact-button {
    min-width: 265px;
    min-height: 65px;
    margin-top: 30px;
    padding: 18px 26px;
    font-size: 21px;
  }

  .services-gallery {
    gap: 18px;
    margin-top: 42px;
  }
}

@media (max-width: 440px) {
  body {
    padding: 35px 18px;
  }

  .collaboration {
    font-size: 18px;
    max-width: 300px;
    margin-inline: auto;
  }

  .collaboration strong {
    display: block;
  }

  .contact h1 {
    font-size: 24px;
    max-width: 340px;
    margin-inline: auto;
  }

  .phone {
    font-size: 29px;
  }

  .services-gallery {
    gap: 10px;
  }

  .service-photo {
    border-radius: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .contact-button:hover {
    transform: none;
  }
}
