*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-image: url("../img/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  color: white;
}

header {
  height: 100vh;
  overflow: hidden;
}

.etoile {
  position: fixed;
  top: -10%;
  left: -15%;
  width: 40%;
  z-index: 1;
}

.carre {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 40%;
  z-index: 1;
}

.disque {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  z-index: 1;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

#header-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0.8;
  text-align: center;
  color: white;
}

#header-subtitle {
  width: 100%;
  position: absolute;
  top: 53%;
  left: 50%;
  font-family: "Tangerine", cursive;
  font-size: 3.2rem;
  font-weight: 600;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: #ffd734;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.button {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 0.5rem 2rem;
  width: 100%;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

a {
  text-decoration: none;
  text-align: center;
  color: white;
}

@media (min-width: 768px) {
  .etoile {
    width: 30%;
  }
  .carre {
    width: 30%;
  }
  .disque {
    width: 30%;
  }

  #header-title {
    font-size: 8rem;
  }
  #header-subtitle {
    font-size: 6rem;
  }
  .button-container {
    width: 50%;
    top: 65%;
    flex-direction: row;
    gap: 1rem;
  }
  .button {
    padding: 1rem 4rem;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .etoile {
    width: 10%;
    top: -5%;
    left: -5%;
  }
  .carre {
    bottom: -5%;
    right: -5%;
    width: 10%;
  }
  .disque {
    width: 20%;
    top: 50%;
    left: 50%;
  }
  #header-title {
    font-size: 12rem;
  }
  #header-subtitle {
    top: 56%;
    font-size: 8rem;
  }
  .button-container {
    top: 70%;
  }
  .button {
    width: 30%;
  }
}

main {
  margin-top: 10rem;
  overflow: hidden;
}

.main-propos {
  margin-top: 10rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

#main-propos-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  opacity: 0.8;
  text-transform: uppercase;
  z-index: 2;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.propos-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 2;
}

#propos-title {
  font-family: "Tangerine", cursive;
  color: #ffd734;
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.8;
  text-align: center;
}

#propos-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
  text-align: left;
  color: white;
}

.propos-description-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 90%;
  margin: 0 auto;
}

.propos-description-container-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

#propos-description {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  width: 100%;
  text-align: left;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.propos-image {
  width: 80%;
  height: auto;
  object-fit: contain;
  z-index: 4;
}

@media (min-width: 768px) {
  #main-propos-title {
    font-size: 8rem;
  }

  #propos-title {
    font-size: 5rem;
  }

  #propos-subtitle {
    font-size: 2rem;
  }

  .propos-image {
    width: 60%;
  }

  #propos-description {
    font-size: 1rem;
    width: 100%;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .propos-description-container {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
  }

  .propos-description-container-text {
    width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  #main-propos-title {
    font-size: 12rem;
  }

  #propos-title {
    font-size: 6rem;
  }

  #propos-subtitle {
    font-size: 2.5rem;
  }

  .propos-image {
    width: 50%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: cover;
  }

  #propos-description {
    font-size: 1.5rem;
    width: 100%;
    height: 100%;
    text-align: left;
    margin: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
  }
}

/* Section Projets */

.main-projet {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
}

#main-projet-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.8;
  text-transform: uppercase;
  z-index: 2;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.projet-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  width: 90%;
  position: relative;
  z-index: 2;
}

.projet-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projet-card:hover {
  transform: scale(1.02);
}

.projet-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.projet-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 100%;
}

.projet-card:hover .projet-card-title {
  opacity: 1;
}

@media (min-width: 768px) {
  #main-projet-title {
    font-size: 3rem;
  }

  .projet-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 85%;
  }

  .projet-card-title {
    font-size: 1.2rem;
  }
}

@media (min-width: 1024px) {
  #main-projet-title {
    font-size: 12rem;
  }

  .projet-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 70%;
    gap: 1.5rem;
    margin: 0 auto;
  }

  .projet-card:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .projet-card:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1 / 2;
  }

  .projet-card:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 2 / 3;
  }

  .projet-card:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
  }

  .projet-card:nth-child(5) {
    grid-column: 4 / 7;
    grid-row: 3 / 5;
  }

  .projet-card:nth-child(6) {
    grid-column: 1 / 4;
    grid-row: 4 / 5;
  }

  .projet-card-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Footer */
footer {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
  background-color: transparent;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  z-index: 2;
  position: relative;
}

#footer-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -2px;
  z-index: 2;
  color: white;
}

#footer-subtitle {
  font-family: "Tangerine", cursive;
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffd734;
  text-align: center;
  margin-bottom: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 2;
}

.footer-arrows {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  position: relative;
  width: 100%;
  z-index: 2;
  padding: 0 1rem;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
  width: 70%;
}

.footer-button {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 0.5rem 2rem;
  cursor: pointer;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  text-align: center;
  min-width: 200px;
  width: 100%;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.footer-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.arrow {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 1;
  position: relative;
  z-index: 2;
}

.arrow-left {
  transform: translateX(10px) rotate(-15deg);
}

.arrow-right {
  transform: translateX(-10px) rotate(15deg);
}

.arrow-center {
  transform: rotate(0deg);
}

@media (min-width: 768px) {
  #footer-title {
    font-size: 6rem;
  }

  #footer-subtitle {
    font-size: 3rem;
  }

  .footer-arrows {
    max-width: 500px;
    margin-bottom: 2rem;
  }

  .footer-links {
    flex-direction: row;
    gap: 5rem;
    justify-content: center;
    align-items: center;
  }

  .footer-button {
    padding: 0.7rem 2rem;
    font-size: 1rem;
  }

  .arrow {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 1024px) {
  #footer-title {
    font-size: 10rem;
  }

  #footer-subtitle {
    font-size: 6rem;
  }

  .footer-arrows {
    max-width: 700px;
    margin-bottom: 3rem;
  }

  .footer-links {
    gap: 8rem;
  }

  .footer-button {
    padding: 0.7rem 2.5rem;
    font-size: 1.2rem;
    width: 60%;
  }

  .arrow {
    width: 70px;
    height: 70px;
  }
}
