html {
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.5rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 4rem;
}

h2 {
  font-size: 2.25rem;
  line-height: 3rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 2.25rem;
}

.container {
  margin: 0 auto;
  max-width: calc(100% - 2rem);
}

/* ---------------------- */
/*       NAVIGATION       */
/* ---------------------- */

nav {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
  background: white;
  height: 3.5rem;
  display: flex;
  align-items: center;
}

nav .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

#logo {
  height: 20px;
  display: block;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* --- MENU MOBILE + TABLETTE (slide-in droite) --- */
#navigation-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: 50%; /* mobile */

  background: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* liens en haut */
  align-items: flex-end;
  gap: 2rem;

  padding: 5rem 1.5rem 2rem; /* espace sous la croix */

  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 20;
}

#navigation-links a {
  width: 100%;
  text-align: right;
  display: inline-block;
  padding-right: 16px; /* décalage des liens */
}

label[for="burger"] {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url('./images/burger.svg');
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  z-index: 30;
}

#burger {
  display: none;
}

#burger:checked ~ #navigation-links {
  transform: translateX(0);
}

/* ---------------------- */
/*        COLUMNS         */
/* ---------------------- */

.columns {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}

.column {
  flex-basis: calc(50% - 0.5rem);
}

/* TABLETTE */
@media screen and (min-width: 769px) {

  #navigation-links {
    width: 33.33%;
  }

  .columns {
    gap: 1.5rem;
  }

  .column {
    flex-basis: calc(50% - 0.75rem);
  }

  .split {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
  }

  .split div {
    flex-grow: 1;
  }

  nav {
    height: 4rem;
  }

  #logo {
    height: 24px;
  }
}

/* DESKTOP */
@media screen and (min-width: 1024px) {

  .container {
    max-width: 61rem;
  }

  nav .container {
    max-width: 976px;
    margin: 0 auto;
    padding: 0;
  }

  #navigation-links {
    position: static;
    height: auto;
    width: auto;
    transform: none;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  #navigation-links a {
    padding: 0;
    text-align: left;
    display: inline;
  }

  #burger,
  label[for="burger"] {
    display: none;
  }

  .columns {
    gap: 2rem;
  }

  .column {
    flex-basis: calc(25% - 1.6rem);
  }
}
