/* Ecriture du code en css !! */

/* Import des typos Google */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  box-sizing: border-box; /* empêche le padding de modiifer la taille des blocs */
}

.container {
  max-width: 1200px; /*largeur max*/
  margin: auto; /*centrer le container*/
  padding: 0 20px; /* 0 en haut et en bas, 20px à gauche et à droite*/
}

.inactive {
  opacity: 0.5;
}

.flexbox {
  display: flex;
}

#menu-button svg {
  width: 32px;
}

.button {
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase; /* texte en majuscule */
  background-color: #1e3264;
  text-align: center;
  color: white;
  padding-top: 16px; /* marge interne */
  padding-bottom: 16px;
  padding-left: 48px;
  padding-right: 48px;
  display: inline-block; /* le bouton doit se présenter comme un rectangle (padding, margin...) */
  border-radius: 600px;
  transition: background-color 1s;
}

/* button au survol */
.button:hover {
  background-color: #2a468d;
}

/* Composant card */
.card {
  display: flex;
  flex-direction: column; /* Pour étirer les enfants sur l'axe secondaire (align-items: stretch) */
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
  width: 400px;
  cursor: pointer; /* affiche une main comme icone de souris */
  transition: all 0.5s;
}

.card:hover {
  /* card au survol */
  /* la card remonte de 20px */
  transform: translateY(-20px);
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
}

.card h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0;
}

.card h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

.card h2 small {
  font-weight: 400;
}

.card ul {
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: solid 1px lightgrey;
  border-bottom: solid 1px lightgrey;
  list-style-image: url("Images/Spotify/checklist.svg");
}

.card ul li {
  margin-bottom: 10px;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
}

/* Styles du header */

#site-header {
  /* background-color: red; */
  position: fixed; /* fixé par rapport à la fenêtre */
  width: 100%;
  padding: 5px 0;
}

#site-header .container {
  display: flex; /* flexbox !!! :) */
  justify-content: space-between; /* Le premier enfant au début, le dernier à la fin */
}

#site-header nav ul {
  padding: 0;
  display: flex;
  list-style: none;
  color: white; /* couleur du texte */
  gap: 20px; /* écart entre les éléments de la flexbox */
}

#site-header nav a {
  color: white; /* couleur du texte */
  text-decoration: none; /* pas de soulignement */
}

#menu-button {
  display: none;
}

.logo {
  width: 140px;
}

/* Styles de la section 1 */

#section1 {
  /* background-color: lightgray; */
  color: white;
  background-image: url("Images/Spotify/hero-image.jpg"); /* image d'arriere-plan */
  background-position: right bottom;
  background-repeat: no-repeat; /* pas de répétition de l'arrière-plan */
  background-size: cover;
  padding-top: 40px;
  padding-bottom: 40px;
}

#section1 .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#section1 h1 {
  font-size: 96px;
  font-weight: 800;
  margin-bottom: 0;
}

#section1 h2 {
  font-size: 30px;
  font-weight: 800;
}

#section1 footer {
  align-self: stretch; /* s'aligne seul sur l'axe secondaire */
  margin-top: 80px;
  text-align: center;
}

/* Styles de la section 2 */

#section2 {
  padding-bottom: 40px;
}

#section2 .container > h1 {
  /* h1 enfant direct du container de la section2 */
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 80px;
}

#section2 article {
  width: 25%;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

#section2 article h1 {
  font-size: 20px;
  font-weight: 800;
}

#section2 article h2 {
  font-size: 14px;
  font-weight: 400;
}

/* Styles de la section 3 */

#section3 {
  background-color: #f8f8f8;
  padding-bottom: 40px;
}

#section3 .container {
  display: flex;
  flex-direction: column;
}

#section3 .container > h1 {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin: 60px 0; /* 60px sur l'axe vertical, 0px sur l'axe horizontal */
}

#section3 .flexbox {
  justify-content: center;
  gap: 40px;
}

#section3 .container > footer {
  margin-top: 60px;
  text-align: center;
}

/* Styles du footer */

body > footer {
  background-color: black;
  color: white;
  padding: 20px 0;
}

body > footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body > footer nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
}

body > footer nav a {
  text-decoration: none;
  color: inherit; /* hérite de son parent */
}

/* Styles mobile */
@media screen and (max-width: 1023px) {
  #site-header nav {
    position: absolute;
    top: 0;
    left: 100%; /* décalage tout àdroite (sort de l'écran) */
    width: 100%; /* toute la largeur de l'écran */
    height: 100vh; /* toute la hauteur de l'écran */
    background: #1e3264;
    transition: left 1s;
    /* display: none; */
  }

  #site-header nav.active {
    left: 0;
  }

  #site-header nav ul {
    margin: 0;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
    font-size: 24px;
  }

  #menu-button {
    display: block;
    z-index: 2; /* passe au dessus du reste */
  }

  #section1 .container {
    align-items: center;
    gap: 40px;
  }

  #section1 h1 {
    font-size: 80px;
  }

  .flexbox {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  #section2 article {
    width: 100%;
  }

  body > footer .container {
    flex-direction: column;
    align-items: center;
  }
}
