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

/**
 * CONTENTS..............You’re reading it!
 * DUO IMAGE + TEXTE ......................
 * DEUX APLATS CÔTE À CÔTE ................
*/

/* ------------------------------------ *\
  ==DUO IMAGE + TEXTE
\* ------------------------------------ */
.duo {
  max-width: var(--max);
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.duo--haut {
  align-items: start;
}

.duo--bas {
  align-items: end;
}

.duo--inverse .duo-media {
  order: 2;
}

.duo-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  width: 100%;
  background: var(--lavande);
}

.duo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}

.duo.in .duo-media img {
  transform: scale(1);
}

.duo-media.duo-media--video {
  overflow: visible;
  aspect-ratio: auto;
  margin: 0;
  background: none;
}

.duo-texte h2 {
  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;
}

.duo-texte p {
  margin: 0 0 16px;
  max-width: 56ch;
}

.duo-signature {
  margin-top: 26px;
  font-family: var(--font-medium);
  font-size: 15px;
  line-height: 1.4;
}

.duo-signature b {
  display: block;
  font-family: var(--font-bold);
  font-weight: normal;
}

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

  .duo--inverse .duo-media {
    order: initial;
  }

  .duo-media {
    aspect-ratio: 16/10;
  }
}

/* ------------------------------------ *\
  ==DEUX APLATS CÔTE À CÔTE
\* ------------------------------------ */
.duo:has(> .aplat + .aplat) {
  align-items: stretch;
}
