/* Fonds fournis par Géraldine : un décor fixe derrière le contenu de chaque page. */
body {
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #fbf8f5 url("images/fond-namitempo-ordinateur.png") center / cover no-repeat;
}

@media (max-width: 767px) {
  body::before {
    background-image: url("images/fond-namitempo-telephone.png");
  }
}

/* Même colonne pour le portrait, centré selon la hauteur réelle du contenu. */
main > .namido-intro {
  padding-block: 1.5rem;
}

main .namido-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

main .namido-intro__layout > :first-child {
  min-width: 0;
  order: 1;
}

main .namido-intro__layout > :last-child {
  width: min(100%, 16rem);
  max-width: 100%;
  justify-self: center;
  align-self: center;
  order: 0;
  margin: 0;
}

/* Taille commune du portrait de Géraldine, identique à l’accueil validé. */
main .namido-portrait {
  width: min(100%, 16rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
}

/* Le blog reprend l’écart menu/contenu des sections du thème. */
main.namido-blog-page {
  padding-top: 30px;
}

@media (min-width: 768px) {
  main > .namido-intro {
    padding-block: 2.5rem;
  }

  main .namido-intro__layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 3rem;
  }

  main .namido-intro__layout > :first-child {
    order: 0;
  }

  main .namido-intro__layout > :last-child {
    justify-self: start;
    order: 1;
  }

  main.namido-blog-page {
    padding-top: 36px;
  }
}

@media (min-width: 1024px) {
  main .namido-intro__layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  main.namido-blog-page {
    padding-top: 42px;
  }
}
