/**
 * Presentation / Qui suis-je — mosaic layout (desktop + responsive)
 *
 * Desktop:
 *   [ Bonjour centered ]
 *   [ Engagement | Portrait ]
 *   [ Hands img  | Parcours ]
 *   [ Approche fullwidth, title centered ]
 */

.ac-pres {
  --ac-pres-muted: #727272;
  --ac-pres-max: 1120px;
  --ac-pres-gap: clamp(1.25rem, 3vw, 2rem);
  color: var(--ac-pres-muted);
}

.ac-pres :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.ac-pres img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ac-pres a:not(.btn) {
  color: inherit;
}

.entry-content .ac-pres a.btn {
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.ac-pres__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 36vw, 360px);
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  text-align: center;
  background-color: #9ab2a2;
  background-image: url("../../uploads/2023/10/energie-solaire-nature.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ac-pres__hero-inner {
  width: min(100%, var(--ac-pres-max));
}

.entry-content .ac-pres__hero-title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 200;
  line-height: 1.1;
  color: #fff;
}

.entry-content .ac-pres__hero-lead {
  margin-top: 0.75rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Shared                                                                     */
/* -------------------------------------------------------------------------- */

.ac-pres__section {
  width: min(100%, var(--ac-pres-max));
  margin: 0 auto;
  padding: var(--ac-pres-gap) 1.25rem;
}

.entry-content .ac-pres__h2 {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ac-pres-muted);
  margin-bottom: 1rem;
}

.ac-pres__prose {
  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--ac-pres-muted);
}

.ac-pres__prose p + p {
  margin-top: 0.9em;
}

.ac-pres__cta {
  margin-top: 1.25rem;
}

/* -------------------------------------------------------------------------- */
/* A) Bonjour — centered above mosaic                                         */
/* -------------------------------------------------------------------------- */

.ac-pres__hello-block {
  text-align: center;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.entry-content .ac-pres__hello {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ac-pres-muted);
  margin-bottom: 0.75rem;
}

.ac-pres__hello-block .ac-pres__prose {
  max-width: 36rem;
  margin-inline: auto;
}

.ac-pres__hello-block .ac-pres__cta {
  display: flex;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* B+C) Mosaic 2×2                                                            */
/* -------------------------------------------------------------------------- */

.ac-pres__mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "engagement portrait"
    "hands parcours";
  gap: var(--ac-pres-gap);
  align-items: start;
  padding-top: var(--ac-pres-gap);
}

.ac-pres__mosaic-engagement {
  grid-area: engagement;
}

.ac-pres__mosaic-portrait {
  grid-area: portrait;
}

.ac-pres__mosaic-hands {
  grid-area: hands;
}

.ac-pres__mosaic-parcours {
  grid-area: parcours;
}

.ac-pres__mosaic-portrait,
.ac-pres__mosaic-hands {
  overflow: hidden;
  border-radius: 2px;
}

.ac-pres__mosaic-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ac-pres__mosaic-hands img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* D) Approche — full width, centered title                                   */
/* -------------------------------------------------------------------------- */

.ac-pres__approche {
  text-align: center;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.ac-pres__approche .ac-pres__h2 {
  text-align: center;
}

.ac-pres__approche .ac-pres__prose {
  max-width: 48rem;
  margin-inline: auto;
  text-align: left;
}

/* -------------------------------------------------------------------------- */
/* AMAVIE + band + partners                                                   */
/* -------------------------------------------------------------------------- */

.ac-pres__amavie {
  width: min(100%, var(--ac-pres-max));
  margin: 0 auto;
  padding: var(--ac-pres-gap) 1.25rem;
}

.ac-pres__amavie-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #f7f7f7;
  border-radius: 4px;
}

.ac-pres__amavie-logo {
  width: min(180px, 40vw);
  height: auto;
}

.ac-pres__amavie-card .ac-pres__h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.ac-pres__amavie-card .ac-pres__prose {
  font-size: 0.98rem;
}

.ac-pres__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 36vw, 380px);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem 1.25rem;
  text-align: center;
  background-image: url("../../uploads/2023/09/119737319_2844237885860416_8102526639712277976_n-e1695396991100.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.entry-content .ac-pres__band-title {
  max-width: 18em;
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 200;
  letter-spacing: 0.5px;
  line-height: 1.25;
  color: #fff;
}

.ac-pres__band .ac-pres__cta {
  margin-top: 1.5rem;
}

.ac-pres__partners {
  width: min(100%, var(--ac-pres-max));
  margin: clamp(1.75rem, 3.5vw, 2.75rem) auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.ac-pres__partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.ac-pres__partners img {
  width: auto;
  max-height: 72px;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ac-pres__amavie-card {
    grid-template-columns: auto 1fr;
  }

  .ac-pres__amavie-card .ac-pres__cta {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
  }
}

@media (max-width: 820px) {
  .ac-pres__mosaic {
    grid-template-columns: 1fr;
    grid-template-areas:
      "engagement"
      "portrait"
      "parcours"
      "hands";
  }

  .ac-pres__mosaic-portrait,
  .ac-pres__mosaic-hands {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .ac-pres__amavie-card {
    grid-template-columns: 1fr;
  }

  .ac-pres__amavie-logo {
    width: min(200px, 55vw);
  }

  .ac-pres__partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .ac-pres__partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .ac-pres__partners {
    grid-template-columns: 1fr;
  }
}
