/* Ajustements de rythme et de navigation pour la version autonome de NCORP R&D. */
html {
  scroll-padding-top: 6rem;
}

section[id] {
  scroll-margin-top: 6rem;
}

main > section:first-child > div {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

main > section:nth-child(2) > div {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

#expertises > div,
#references > div,
#a-propos > div,
#publications > div,
#contact > div {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

@media (max-width: 639px) {
  h1 {
    font-size: 2.25rem !important;
  }

  main > section:nth-child(2) .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 768px) {
  main > section:first-child > div {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  main > section:nth-child(2) > div {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  #expertises > div,
  #references > div,
  #a-propos > div,
  #publications > div,
  #contact > div {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}
