/** Home ***************************************************************/

/** Coach */
.coach-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.coach-container img {
  display: block;
  width: 37%;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
  box-shadow: var(--shadow-card);
  margin-right: 50px;
}

.coach-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.coach-description p {
  width: 90%;
  margin-bottom: 40px;
}

.coach-link {
  align-self: flex-start;
  min-width: 300px;
}

/** Parallax */
.parallax-section {
  min-height: 250px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.5)),
    url("./ressources/PARRALAX_CoachingRomainFroment.webp");
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-section p {
  font-size: var(--fs-30);
  font-weight: 600;
  font-style: italic;
  color: var(--main-white);
  letter-spacing: 1px;
}

/** Formules home */
.formules-section {
  display: flex;
  flex-direction: column;
}

.formules-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.formules-main-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 30px 0;
}

.formules-main-row .main-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: #fff;
}

.card-media {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.card-media .img-card {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.card-overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 85%;
  margin: 0;
  text-align: center;
  color: var(--main-white);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.6vw + 0.5rem, 2.2rem);
  letter-spacing: 0.08em;
  line-height: 1.5;
  font-weight: 700;
}

.formules-main-row .main-card .card-media {
  width: 45%;
}

.formules-main-row .main-card .card-media .img-card {
  min-height: 320px;
}

.formules-main-row .main-card .card-details {
  width: 55%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.formules-main-row .main-card .card-link {
  align-self: flex-end;
  margin-top: 20px;
  padding-right: 0;
  margin-bottom: 0;
}

.title-main-card-black {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.title-main-card-black .card-line {
  display: block;
  width: 80%;
  height: 1px;
  background-color: var(--main-black);
  margin: 20px auto;
}

.formules-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  row-gap: 30px;
}

.card-activity {
  width: calc(50% - 15px);
  max-width: calc(50% - 15px);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.card-activity p {
  margin-bottom: 15px;
}

.img-card {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: 50%;
  border-radius: 0;
}

.card-details {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.card-link {
  color: var(--third-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: end;
  padding-right: 15px;
  margin-bottom: 15px;
}

.activity-link {
  align-self: center;
  min-width: 300px;
  margin: 40px auto 80px auto;
}

/** Contact home plus compact */
.contact-section--home {
  min-height: auto;
  padding: 32px 20px 18px;
  background:
    linear-gradient(rgba(17, 17, 17, 0.84), rgba(17, 17, 17, 0.72)),
    url("./ressources/PARRALAX_CoachingRomainFroment.webp");
  background-position: center;
  background-size: cover;
  border-top: var(--b-line);
}

.contact-home-shell {
  width: min(1120px, 94%);
  margin: 0 auto;
  color: var(--main-white);
}

.contact-home-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 14px;
}

.contact-home-intro .title-2 {
  margin-bottom: 8px;
  color: var(--main-white);
  text-shadow: none;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.contact-home-text {
  color: rgba(245, 245, 244, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-home-divider {
  width: 100%;
  max-width: 860px;
  height: 1px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.16);
}

.contact-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 16px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto 10px;
}

.contact-home-item {
  text-align: center;
}

.contact-home-label {
  margin-bottom: 4px;
  color: rgba(245, 245, 244, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-home-item p,
.contact-home-item a {
  color: var(--main-white);
  line-height: 1.45;
  text-decoration: none;
  font-size: 0.92rem;
}

.contact-home-studio {
  white-space: nowrap;
}

.contact-home-item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-home-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-home-socials a,
.contact-home-socials span {
  color: var(--main-white);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-home-socials a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .parallax-section {
    min-height: 200px;
  }

  .parallax-section p {
    font-size: var(--fs-24);
    text-align: center;
    padding: 0 20px;
  }

  .contact-home-shell {
    width: min(1180px, 96%);
  }

  .contact-home-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 12px;
  }

  .contact-home-item p,
  .contact-home-item a {
    font-size: 0.88rem;
  }

  .contact-home-studio {
    white-space: normal;
  }
}

@media (max-width: 945px) {
  .formules-main-row .main-card {
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    flex-direction: column;
  }

  .formules-main-row .main-card .card-media {
    width: 100%;
  }

  .formules-main-row .main-card .card-media .img-card {
    min-height: 240px;
  }

  .formules-main-row .main-card .card-details {
    width: 100%;
  }

  .formules-cards-grid {
    justify-content: center;
    row-gap: 25px;
  }

  .formules-cards-grid .card-activity {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .contact-home-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .contact-home-studio {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .coach-container {
    flex-direction: column;
  }

  .coach-container img {
    width: 80%;
    max-height: 400px;
    object-position: top;
    align-items: center;
    margin: 0 auto;
  }

  .coach-description {
    align-items: center;
    text-align: center;
    margin: 40px auto 0 auto;
  }

  .coach-link {
    align-self: center;
  }

  .parallax-section p {
    font-size: var(--fs-20);
  }

  .contact-section--home {
    padding: 28px 16px 16px;
  }

  .contact-home-intro {
    margin-bottom: 12px;
  }

  .contact-home-divider {
    margin-bottom: 12px;
  }
}

@media (max-width: 470px) {
  .coach-container img {
    width: 90%;
    max-height: 300px;
  }

  .coach-link,
  .activity-link {
    min-width: 220px;
  }

  .formules-main-row .main-card,
  .formules-cards-grid .card-activity {
    width: 100%;
    max-width: 100%;
  }

  .contact-home-text {
    font-size: 0.9rem;
  }

  .contact-home-item p,
  .contact-home-item a,
  .contact-home-socials a,
  .contact-home-socials span {
    font-size: 0.86rem;
  }
}
