/* ─── PAGE À PROPOS ────────────────────────────── */

/* Hero — image 2/3 + intro 1/3 */
.ap-hero {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.ap-hero-img-wrap {
  height: 66.666vh;
  overflow: hidden;
  flex-shrink: 0;
}

.ap-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 28px;
  gap: 6px;
}

.ap-logo-titre {
  height: 74pt;
  width: auto;
  display: block;
  align-self: flex-start;
  margin-left: -28px;
  margin-bottom: -25px;
}

/* Image horizontale entre les marges, ratio 3:2 */
.ap-img-mid {
  margin: 60px 24px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.ap-img-mid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texte courant */
.ap-texte {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ap-texte-body {
  line-height: 1.4;
}

.ap-texte-statement {
  font-weight: 700;
}

/* Deux images portrait 3:4 en deux colonnes */
.ap-img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 24px 24px 60px;
}

.ap-img-duo-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.ap-img-duo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections approche / pour qui / comment */
.ap-section {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ap-section-titre {
  display: block;
  line-height: 0.9;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════
   À PROPOS — DESKTOP
   ══════════════════════════════════════════════ */

@media (min-width: 1024px) {

  /* ─── IMAGE MID : masquée sur desktop ─── */
  .ap-hero + .ap-img-mid {
    display: none;
  }

  /* ─── INTRO : titre aligné en haut comme pages services ─── */
  .ap-intro {
    justify-content: flex-start;
    padding: 28px var(--grid-margin, 40px) 32px;
  }

  .ap-logo-titre {
    height: 90pt;
    margin-left: -40px;
  }

  /* ─── TEXTE : deux colonnes, cols 4–7 et 8–11 ─── */
  .ap-texte {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gutter, 24px);
    padding: 0 var(--grid-margin, 40px) 20px;
    margin-top: 40px;
    row-gap: 0;
  }

  .ap-texte-body:nth-child(1) {
    grid-column: 1 / 5;
  }

  .ap-texte-body:nth-child(2) {
    grid-column: 8 / 12;
    margin-top: 0;
  }

  /* ─── IMAGE DUO : miroir des pages services ─── */
  /* Services : gauche petite (4 col / 50vh) | droite grande (8 col / 80vh) */
  /* Apropos   : gauche grande (8 col / 80vh) | droite petite (4 col / 50vh) */

  .ap-img-duo {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 50vh 1fr;
    height: 80vh;
    column-gap: var(--grid-gutter, 24px);
    row-gap: 0;
    padding: 0 var(--grid-margin, 40px);
    margin-top: 50px;
  }

  .ap-img-duo-item:first-child {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    aspect-ratio: unset;
    height: 100%;
  }

  .ap-img-duo-item:last-child {
    grid-column: 8 / 13;
    grid-row: 1;
    aspect-ratio: unset;
    height: 100%;
  }

  /* ─── 3 SECTIONS + IMAGE : grille desktop ─── */

  .ap-sections-wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: var(--grid-gutter, 24px);
    padding: 0 var(--grid-margin, 40px);
    margin-top: 120px;
  }

  .ap-sections-wrap .ap-section:nth-child(1) { grid-column: 1 / 4;  grid-row: 1; padding: 60px 0; }
  .ap-sections-wrap .ap-section:nth-child(2) { grid-column: 5 / 8;  grid-row: 1; padding: 60px 0; }
  .ap-sections-wrap .ap-section:nth-child(3) { grid-column: 9 / 12; grid-row: 1; padding: 60px 0; }

  .ap-sections-wrap .ap-section:nth-child(2) .ap-texte-body:first-child {
    margin-top: 37px;
  }

  .ap-sections-wrap .ap-img-mid {
    grid-column: 1 / 13;
    grid-row: 2;
    margin: 80px 0 60px;
    aspect-ratio: 16 / 5;
  }

}
