.hero {
  background-image: url("../img/training-club-hero.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--yellow-peaks);
}

.hero__content {
  display: flex;
  gap: 10rem;
}

.hero__text {
  margin: 0;
}

.hero__content::before {
  content: "";
  position: absolute;
  top: calc(var(--base-margin-large) - 2rem);
  right: var(--base-gutter);
  height: 150px;
  width: 52px;
  background-image: url("../img/pleca.png");
  background-repeat: no-repeat;
}

.hero__left {
  color: var(--white);
  max-width: 50%;
  font-weight: 400;
  font-size: 1.2rem;
  text-shadow: 0 1px 0 rgb(0, 0, 0.8);
}

.hero__left__img {
  width: 270px;
  margin-bottom: var(--base-gutter);
}

.hero__right {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.hero__right-text {
  flex:1;
}

.hero__right__formation {
  color: var(--yellow-peaks);
}

.hero__right__organisme {
  color: var(--white);
  display: flex;
  background-image: url("../img/LogoQualiopi-300dpi-Avec-Marianne%201.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 60px;
  min-height: 50px;
  padding-right: 120px;
}

.hero__right__button {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
  align-items: flex-end;
}

.hero__right__button li {
  width: 100%;
  text-align: right;
}

.hero__right__button .button {
  width: 24em;
  margin: 0 0 0 auto;
}

@media screen and (max-width: 1580px) {
  .hero__content::before {
    display: none;
  }
}

@media screen and (max-width: 1370px) and (min-width: 768px) {
  .hero__right__organisme {
    padding-right: 120px; 
    background-position: right center;
    background-size: auto 60px;
  }
}

@media screen and (max-width: 1024px) {
  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero__left,
  .hero__right {
    max-width: 100%;
    width: 100%;
  }

  .hero__left {
    order: 1;
    padding-bottom: 0;
  }

  .hero__right {
    order: 2;
    padding-top: 0;
  }

  .hero__right__button li {
    text-align: center;
  }
  .hero__right__button .button {
    margin: 0 auto;
  }

  .hero__left__img {
    width: 200px;
    margin-bottom: var(--base-margin-small);
  }

  .hero__right__organisme {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero__right__organisme::after {
    width: 100px;
    height: 40px;
    margin-left: 0;
  }

  .hero__content::before {
    display: none;
  }
}

.formation {
  background-color: var(--blue-marine);
}

.formation__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--base-gutter);
  grid-template-rows: repeat(2, 1fr);
  margin: 0;
}

.formation__grid .card__media {
  aspect-ratio: unset;
  text-align: center;
}

.formation__grid .card__media img {
  width: 50px;
  height: auto;
  margin: 0 auto;
}

.formation__grid  article:nth-child(n+9) {
  display: none;
}

.formation__title {
  font-weight: 700;
  margin-bottom: 0;
  flex: 1;
}

.formation__desc {
  margin: 0;
}

.formation__meta {
  border-top: 1px solid var(--blue-marine);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formation__duration,
.formation__location,
.formation__calendar {
  padding-left: 20px;
  background-image: url(../img/watch.svg);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 16px;
  margin: 0;
}

.formation__calendar {
  background-image: url(../img/ion_calendar-outline.svg);
}

.formation__button {
  text-align: center;
  padding-top: 0;
}

.card--surmeasure {
  background-color: var(--blue-marine);
  color: var(--yellow-peaks);
  border: 2px solid var(--yellow-peaks);
}

.card--surmeasure .formation__desc {
  border-color: var(--yellow-peaks);
}

.card--surmeasure p {
  border-bottom: 1px solid var(--yellow-peaks);
  padding-bottom: 1rem;
}

.card--surmeasure  h2 {
  margin-bottom: 0;
  font-weight: 900;
}

.card--surmeasure:focus-within {
    box-shadow: 0 0 0 0.25rem var(--yellow-peaks);
}

@media screen and (max-width: 1300px) {
  .formation__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1199px) {
  .formation__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .formation__grid {
    grid-template-columns: 1fr;
  }
}

.formulaire {
  background-color: var(--medium-grey);
}

.formulaire__title {
  color: var(--blue-marine);
  font-weight: 900;
}

.formulaire__sous-titre {
  color: var(--pink-peaks);
  font-weight: 900;
}

.formulaire__content  {  
  background: var(--white);
  border-radius: 1rem;
  padding: var(--base-gutter);
}

