@import "./assets/css/variables.css";
@import "./assets/css/mediaqueries.css";
@import "./assets/css/reset.css";
@import "./assets/css/header.css";
@import "./assets/css/footer.css";

.home-page {
  background-color: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6rem; /* plus de respiration entre sections */
  padding: 8rem 2rem;
}

/* Welcome Section */
.welcome-section {
  cursor: default;
  position: relative;
  border-radius: 0.5rem;
  min-height: 70vh;
  min-width: 400px;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-dark);
  overflow: hidden;
  margin-top: 4rem;
  /* on ajoute width: 100% pour que les pseudo-elements suivent */
  width: 100%;
}

/* Triangles doré & argenté */
.welcome-section::before,
.welcome-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.welcome-section::before {
  background-color: var(--color-gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.welcome-section::after {
  background-color: var(--color-silver);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}

/* Welcome Content */
.welcome-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem; /* pour laisser respirer le texte */
}

.welcome-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-logo);
}

.welcome-section p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Tech list */
.tech-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 1rem 2rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 400px;
}

.tech-list li {
  border-radius: 1rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-list li a {
  width: 10rem;
  display: block;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.2rem;
}

/* Couleurs tech */
.tech.javascript a {
  background-color: var(--color-javascript);
  color: var(--color-dark);
}
.tech.typescript a {
  background-color: var(--color-typescript);
  color: var(--color-light);
}
.tech.vue a {
  background-color: var(--color-vue);
  color: var(--color-light);
}
.tech.react a {
  background-color: var(--color-react);
  color: var(--color-dark);
}
.tech.angular a {
  background-color: var(--color-angular);
  color: var(--color-light);
}
.tech.node a {
  background-color: var(--color-node);
  color: var(--color-light);
}

.tech-list li a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-default);
}

/* Projects Section */
.projects-section {
  cursor: default;
  position: relative;
  border-radius: 0.5rem;
  min-height: 70vh;
  min-width: 400px;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-dark);
  overflow: hidden;
  margin-top: 4rem;
  width: 100%;
}

.projects-section::before,
.projects-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.projects-section::before {
  background-color: var(--color-silver);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.projects-section::after {
  background-color: var(--color-gold);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}

.projects-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem; /* pour laisser respirer le texte */
}

.projects-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.projects-content p {
  font-size: 1.3rem;
  padding: 2rem 8rem 2rem 8rem;
  padding-inline: 2rem;
  color: var(--color-dark);
  line-height: 1.6;
  /* text-wrap: balance; */
}

.projects-content span {
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem 0.1rem 0.3rem;
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid var(--color-dark);
  background-color: var(--color-light);
}

.btn-projects {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  border-radius: 0.4rem;
  text-decoration: none;
  background-color: var(--color-light);
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.btn-projects .btn-icon-project {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0; /* évite l’écrasement */
}

.btn-projects:hover {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.btn-projects:hover .btn-icon-project {
  transform: translateX(3px);
  color: var(--color-projects);
}

/* Contact Section */
.contact-section {
  cursor: default;
  position: relative;
  border-radius: 0.5rem;
  min-height: 70vh;
  min-width: 400px;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-dark);
  overflow: hidden;
  margin-top: 4rem;
  width: 100%;
}

.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.contact-section::before {
  background-color: var(--color-gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.contact-section::after {
  background-color: var(--color-silver);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
}

/* Welcome Content */
.contact-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem; /* pour laisser respirer le texte */
}

.contact-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.contact-content p {
  font-size: 1.3rem;
  padding: 2rem 8rem 2rem 8rem;
  padding-inline: 2rem;
  color: var(--color-dark);
  line-height: 1.6;
  /* text-wrap: balance; */
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
  border-radius: 0.4rem;
  text-decoration: none;
  background-color: var(--color-light);
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.btn-contact .btn-icon-contact {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0; /* évite l’écrasement */
}

.btn-contact:hover {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.btn-contact:hover .btn-icon-contact {
  transform: translateX(3px);
  color: var(--color-contact);
}
