@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost-latin.7726a5cd6f.woff2") format("woff2");
}

@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-italic.0cadc07f42.woff2") format("woff2");
}

:root {
  --soleco-red: #d41126;
  --soleco-black: #131313;
  --white: #fff;
}

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

html {
  min-width: 320px;
  color: var(--soleco-black);
  background: var(--white);
  font-family: "Jost", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--soleco-black);
  background: var(--white);
}

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

figure {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--soleco-red);
}

.skip-link,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus {
  z-index: 1000;
  top: 8px;
  left: 8px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  clip: auto !important;
  background: var(--white);
  color: var(--soleco-red);
  border-radius: 4px;
}

.mobile-site {
  display: none;
}

.desktop-site {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 0 100px;
  padding: 0 75px;
  background-image: url("/assets/images/soleco-installation.510e5d23e7.webp");
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: auto;
}

.desktop-offers-card {
  flex: 0 0 55%;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
}

.offer {
  min-width: 0;
  color: var(--soleco-black);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.desktop-offers-card .offer {
  flex: 1 1 50%;
  padding: 100px 25px 50px;
  text-align: center;
}

.offer h1,
.offer h2,
.offer p {
  padding: 0;
}

.offer-title {
  margin: 0 0 20px;
  color: var(--soleco-red);
  font-size: 27px;
  font-weight: 900;
  line-height: 28px;
  text-transform: uppercase;
}

.offer-principle {
  margin: 0 0 10px;
  color: var(--soleco-red);
  font-size: 25px;
  font-weight: 800;
  line-height: 36px;
}

.offer-how {
  margin: 20px 0 10px;
  color: var(--soleco-red);
  font-size: 25px;
  font-weight: 800;
  line-height: 30px;
}

.offer p {
  margin: 0 0 14.4px;
}

.offer p:last-child {
  margin-bottom: 0;
}

.offer em {
  font-style: italic;
}

.desktop-form-card {
  flex: 0 0 35%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 50px;
  border-radius: 20px;
  background: var(--white);
}

.soleco-logo {
  width: 75%;
  margin: 0 auto 45px;
}

.soleco-form {
  width: 100%;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.field {
  width: 100%;
  min-width: 0;
  height: 47px;
  display: block;
  margin: 0;
  padding: 6px 16px;
  color: var(--soleco-black);
  background: var(--white);
  border: 0;
  border-bottom: 1px solid #333;
  border-radius: 0;
  outline: 0;
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  transition: border-color 0.3s ease;
}

.field::placeholder {
  color: var(--soleco-black);
  opacity: 1;
}

.field:focus {
  border-bottom-color: var(--soleco-red);
}

textarea.field {
  height: 103px;
  resize: vertical;
  border-bottom-color: #69727d;
}

.submit-button {
  align-self: flex-start;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 24px;
  color: var(--white);
  background: var(--soleco-red);
  border: 0;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  text-align: center;
  transition: transform 0.3s ease-out, opacity 0.2s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: translateY(8px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-consent {
  margin: 20px 0 0;
  color: var(--soleco-black);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .desktop-site {
    gap: 0 25px;
    padding: 0 25px;
  }

  .desktop-offers-card,
  .desktop-form-card {
    min-height: 85vh;
  }

  .desktop-offers-card .offer {
    padding-right: 25px;
    padding-left: 25px;
  }

  .desktop-form-card {
    padding-right: 25px;
    padding-left: 25px;
  }

  .offer-how {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .desktop-site {
    display: none;
  }

  .mobile-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px 25px;
    background: var(--white);
  }

  .mobile-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 0 17px 2px rgba(0, 0, 0, 0.25);
  }

  .mobile-offer {
    justify-content: flex-start;
    padding-right: 15px;
    padding-left: 15px;
    text-align: left;
  }

  .mobile-offer--parrainage {
    min-height: 800px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .mobile-offer--affichage {
    min-height: 651px;
    padding-top: 15px;
    padding-bottom: 25px;
  }

  .mobile-offer .soleco-logo {
    width: 65%;
    margin: 0 0 35px;
  }

  .mobile-offer .offer-title {
    margin-bottom: 20px;
    font-size: 25px;
    line-height: 28px;
  }

  .mobile-offer .offer-principle {
    font-size: 25px;
    line-height: 36px;
  }

  .mobile-offer .offer-how {
    margin-top: 5px;
    font-size: 25px;
    line-height: 28px;
  }

  .mobile-image-card {
    min-height: 25vh;
  }

  .mobile-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
  }

  .mobile-form-card {
    min-height: 775px;
    justify-content: center;
    padding: 25px 15px;
  }

  .mobile-form-card .field {
    font-size: 14px;
    line-height: 19.6px;
  }

  .mobile-form-card textarea.field {
    height: 91px;
  }

  .mobile-form-card .form-consent {
    margin-top: 35px;
  }
}

/* Pages annexes */
.content-page {
  min-height: 100vh;
  padding: 48px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("/assets/images/soleco-installation.510e5d23e7.webp") center / cover fixed;
}

.content-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 17px 2px rgba(0, 0, 0, 0.16);
  font-size: 17px;
  line-height: 1.6;
}

.content-card__logo {
  width: 180px;
  margin: 0 auto 32px;
}

.content-card h1,
.content-card h2 {
  color: var(--soleco-red);
}

.content-card h1 {
  margin: 0 0 32px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

.content-card h2 {
  margin: 38px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.content-card p,
.content-card ul {
  margin-top: 0;
  margin-bottom: 16px;
}

.content-card__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid #ddd;
}

.content-card__nav a {
  font-weight: 700;
}

.thank-you-card {
  text-align: center;
}

.thank-you-card h1 {
  text-transform: none;
}

.home-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 25px;
  color: var(--white);
  background: var(--soleco-red);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
}

/* Route WordPress historique */
.legacy-page {
  width: min(1200px, calc(100% - 70px));
  margin: 0;
  padding: 0 0 80px 35px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.legacy-page h1,
.legacy-page h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
}

.legacy-page h1 {
  margin: 0 0 18px;
  font-size: 40px;
}

.legacy-page h2 {
  margin: 30px 0 18px;
  font-size: 30px;
}

.legacy-comment {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 30px;
}

.legacy-comment img {
  width: 42px;
  height: 42px;
}

.legacy-comment__date {
  color: #a93859;
  font-size: 12px;
}

@media (max-width: 767px) {
  .content-page {
    padding: 24px 14px;
  }

  .content-card {
    border-radius: 16px;
    font-size: 16px;
  }

  .legacy-page {
    width: calc(100% - 28px);
    padding-left: 14px;
  }

  .legacy-page h1 {
    font-size: 34px;
  }

  .legacy-comment {
    grid-template-columns: 50px 1fr;
  }

  .legacy-comment__date {
    grid-column: 2;
  }
}

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