@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,700&display=swap");

:root {
  --clr-dark: hsl(0, 0%, 0%);
  --clr-light: hsl(0, 0%, 100%);

  /* Variables Grises */
  --clr-white-gray: hsla(242, 48%, 15%, 0.4);
  --clr-white-gray: hsl(0, 0%, 59%);
  --clr-gray: hsl(260, 8%, 92%);
  --clr-dark-gray: hsl(0, 0%, 11%);

  /* Variables Blanches */
  --clr-beige: hsl(0, 0%, 92%);

  /* Variables Rouges */
  --clr-red: hsl(5, 61%, 54%);

  --ff-cinzel: "Cinzel", serif;
  --ff-sans: "DM sans", sans-serif;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}
body {
  background-color: var(--clr-dark-gray);
  /* background: linear-gradient(
    to bottom,
    var(--clr-dark-gray),
    rgb(136, 136, 136)
  ); */
}
/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: var(--ff-cinzel);
  background-color: var(--clr-dark-gray);
  color: var(--clr-beige);
}
.navigation {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  font-family: var(--ff-sans);
  color: var(--clr-beige);
  font-size: 1.5rem;
}

.navigation__title {
  font-family: var(--ff-cinzel);
  font-weight: 100;

  position: relative;
  font-size: 10rem;
}

.navigation__desc {
  font-size: 2.5rem;
}

.navigation__list {
  display: flex;
  align-items: center;
  font-family: var(--ff-cinzel);
  font-weight: 100;

  list-style: none;
  gap: 3rem;
}

.navigation__item a {
  color: var(--clr-beige);
  text-decoration: none;
  position: relative;
  font-size: 1.5rem;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Effet de changement de couleur au survol */
.navigation__item a:hover {
  color: var(--clr-white-gray);
  transform: scale(1.1);
}

/* Ajout d'un soulignement animé */
.navigation__item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background-color: var(--clr-white-gray);
  transition: width 0.3s ease-in-out;
}

/* Animation du soulignement au survol */
.navigation__item a:hover::after {
  width: 100%;
}

/* Animation de zoom léger */
.navigation__item a:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

@media (max-width: 48rem) {
  .navigation {
    font-size: 1rem;
  }

  .navigation__title {
    font-size: 5rem;
  }

  .navigation__desc {
    font-size: 1.5rem;
  }
  .navigation__list {
    flex-direction: column;
    gap: 1rem;
  }
  .navigation__item {
    font-size: 1.5rem;
  }
}
