/* Page À propos — portrait + texte
   --------------------------------------------------------------------------- */

.a-propos-page {
  background: var(--color-bg);
}

.a-propos-page .a-propos-page__main.section--tight {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(
    env(safe-area-inset-top, 0px) + clamp(5.25rem, 12vw, 7.5rem)
  );
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-block: unset;
}

.a-propos-page .a-propos-page__main .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.a-propos-page__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
}

.a-propos-page__media {
  order: 0;
  margin: 0;
  line-height: 0;
  min-height: 0;
  flex: 0 0 auto;
  /* Image plus grande pour accueillir le texte à sa hauteur */
  width: clamp(320px, 42vw, 480px);
  max-width: 100%;
}

.a-propos-page__content {
  order: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  /* Plus large qu'avant : le texte s'étale et descend moins */
  flex: 0 1 min(100%, 44rem);
  max-width: min(100%, 44rem);
  padding-top: 0;
}

.a-propos-page__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: grayscale(100%);
}

.a-propos-page__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #e8e1d9;
}

.a-propos-page__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: #68523f;
  margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
  max-width: 28ch;
}

.a-propos-page__brand {
  white-space: nowrap;
}

.a-propos-page__prose {
  width: 100%;
  max-width: none;
}

.a-propos-page__text {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: #68523f;
  max-width: none;
}

.a-propos-page__text p {
  margin: 0 0 0.85rem;
}

.a-propos-page__text p:last-child {
  margin-bottom: 0;
}

.a-propos-page__text ul,
.a-propos-page__text ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.a-propos-page__text ul {
  list-style: disc;
}

.a-propos-page__text ol {
  list-style: decimal;
}

.a-propos-page__text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(104, 82, 63, 0.65);
  text-underline-offset: 0.18em;
}

.a-propos-page__text a:hover {
  text-decoration-color: #68523f;
}

.a-propos-page__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* Même .prestations__cta ; largeur adaptée au libellé « MES SERVICES » */
.a-propos-page__cta-wrap .prestations__cta {
  width: fit-content;
  max-width: 100%;
  padding-inline: 1.35rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .a-propos-page .a-propos-page__main.section--tight {
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: calc(
      env(safe-area-inset-top, 0px) + clamp(6.25rem, 20vw, 8.5rem)
    );
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
  }

  .a-propos-page .a-propos-page__main .container {
    align-items: flex-start;
    padding-top: clamp(1.5rem, 5vw, 2.5rem);
    padding-bottom: clamp(1.25rem, 4vw, 2rem);
  }

  .a-propos-page__grid {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    max-width: 100%;
  }

  /* Colonne texte aplatie : titre / texte / bouton réordonnables avec l'image */
  .a-propos-page__content,
  .a-propos-page__prose {
    display: contents;
  }

  .a-propos-page__title {
    order: 1;
    max-width: none;
  }

  .a-propos-page__text {
    order: 2;
  }

  .a-propos-page__media {
    order: 3;
    align-self: center;
    flex: 0 1 auto;
    width: min(100%, clamp(260px, 72vw, 380px));
    margin-top: clamp(1.75rem, 5vw, 2.25rem);
  }

  .a-propos-page__cta-wrap {
    order: 4;
  }

  .a-propos-page__img,
  .a-propos-page__placeholder {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .a-propos-page__img {
    object-position: center top;
  }

  .a-propos-page__prose {
    max-width: none;
  }

  .a-propos-page__cta-wrap {
    margin-top: clamp(2.5rem, 7vw, 3.5rem);
  }
}

@media (max-width: 520px) {
  .a-propos-page__title {
    font-size: clamp(1.65rem, 6vw, 2rem);
  }
}
