@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --clr-dark: hsl(0, 0%, 5%);
  --clr-white: hsl(0, 0%, 100%);
  --clr-dark-white: hsl(0, 0%, 100%, 0.4);

  --clr-dark-blue: hsl(251, 75%, 22%);
  --clr-blue: hsl(251, 72%, 34%);
  --clr-pink: hsl(337, 80%, 57%);
  --clr-light-pink: hsl(337, 89%, 72%);
  --clr-light: hsla(241, 47%, 15%, 0.4);
  --clr-grey: hsla(242, 48%, 15%, 0.4);
  --clr-light-grey: rgb(236, 236, 233);
  --clr-turquoise: hsla(173, 71%, 50%, 1);
  --clr-dark-turquoise: rgb(26, 152, 137);

  --ff-sans: "DM sans", sans-serif;
  --ff-serif: "Playfair Display", serif;
  --ff-titre: "Lora", serif;
  --ff-corps: "Montserrat", serif;
}
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 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;
}

/* 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;
}

/* 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 */

body {
  justify-content: center;
  align-items: center;
  display: flex;
}
.sae {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  font-family: var(--ff-corps);
  color: var(--clr-dark);
  font-size: 1.5rem;
  background-image: url("assets/Cover.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.sae__title {
  font-size: 10rem;
  font-family: var(--ff-serif);
}

.sae__desc {
  font-size: 2.5rem;
}

.sae__list {
  display: flex;
  align-items: center;
  padding: 0;
  /* color: var(--clr-white); */

  list-style: none;
  gap: 3rem;
}

.sae__liname {
  margin: 2rem;
  border: 1px solid var(--clr-dark);
  border-radius: 1.75rem;
  padding: 1rem 2rem;
  background-color: var(--clr-dark);
  width: 20rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.sae__liname:hover {
  background-color: var(--clr-white);
  border: 1px solid var(--clr-dark);
  transform: scale(1.05);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.sae__btn {
  display: block;
  width: 100%;
  text-decoration: none;

  color: var(--clr-white);
  transition: color 0.3s ease-in-out;
}

.sae__liname:hover .sae__btn {
  color: var(--clr-dark);
}

@media (max-width: 48rem) {
  .sae {
    font-size: 1rem;
  }

  .sae__title {
    font-size: 5rem;
  }

  .sae__desc {
    font-size: 1.5rem;
  }
  .sae__list {
    flex-direction: column;
    gap: 1rem;
  }
  .sae__liname {
    font-size: 1.5rem;
  }
}
