/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * AXES ...................................
*/

/* ------------------------------------ *\
  ==AXES
\* ------------------------------------ */
.axes {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.axe {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 86px);
  border-top: 1px solid rgb(17 17 17 / 14%);
}

.axe:first-of-type {
  border-top: 0;
}

.axe-corps {
  order: 2;
}

.axe-media {
  position: relative;
  order: 1;
}

.axe--droite {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
}

.axe--droite .axe-corps {
  order: 1;
}

.axe--droite .axe-media {
  order: 2;
}

.axe-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-bold);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--axe, var(--bleu));
}

.axe-num i {
  display: block;
  width: 34px;
  height: 12px;
  background: var(--axe, var(--bleu));
  font-style: normal;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease) 0.1s;
}

.axe.in .axe-num i {
  transform: scaleX(1);
}

.axe h3 {
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.axe p {
  margin: 0 0 18px;
  max-width: 62ch;
}

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

.axe-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  width: 100%;
  background: var(--lavande);
}

.axe-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.4s var(--ease);
}

.axe.in .axe-photo img {
  transform: scale(1);
}

.axe-trame {
  height: 74px;
  margin-top: 0;
}

@media (max-width: 860px) {
  .axe,
  .axe--droite {
    grid-template-columns: 1fr;
  }

  .axe .axe-corps,
  .axe .axe-media {
    order: initial;
  }

  .axe-media {
    margin-top: 6px;
  }
}
