@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display');

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
}

:root {
  --bg-color: #1f242d;
  --second-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  cursor: default;
  margin-left: -10rem;
  color: var(--text-color);
}

.navbar a {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: .3s;
  padding: 0.5rem 1rem;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

/* Home Section */
.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 0 9%;
  gap: 2rem;
}

.home-content {
  flex-basis: 60%;
}

.home h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
}

.home h1 span {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--main-color);
}

.home-img-cerlce {
  width: 30vw;
  max-width: 350px;
  min-width: 250px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img-cerlce img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: .2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.5s ease;
}

.social-media a:hover {
  background: var(--main-color);
  color: var(--second-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--main-color);
  color: var(--second-color);
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-top: 2rem;
  transition: .5s;
}

.btn:hover {
  background: var(--second-color);
  color: var(--main-color);
}

.home-content p {
  font-size: 2.5rem;
}

.home h2 {
  font-size: 2.9rem;
}

/* Common Title Styles */
.title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--main-color);
  font-size: 10rem;
}

.title-text {
  font-size: 4rem;
  font-weight: 400;
}

/* About Me Section */
.Qui_suis_je {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--second-color);
  padding: 5rem 0;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  flex-direction: row-reverse;
  padding: 0 5%;
}

.about-text p {
  font-size: 2.5rem;
  max-width: 600px;
  text-align: left;
}

.about-img {
  width: 60vw;
  max-width: 550px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  padding: 1rem;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0.2rem solid #0ef;
  border-radius: 10%;
}

/* My Journey Section */
.Mon_parcours {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem;
}

.Mon_parcours .content p {
  font-size: 2.5rem;
  max-width: 100rem;
  text-align: left;
}

.timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 5%;
  margin-top: 2rem;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  text-align: center;
  background-color: var(--second-color);
  padding: 2rem;
  border: 0.2rem solid #0ef;
  border-radius: 10%;
}

.timeline-content h3 {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.timeline-content p {
  font-size: 2.5 rem;
  margin: 0;
}

.SIN {
  color: #fff;
  text-decoration: underline;
}

.SIN:hover {
  color: #ffcc00;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--second-color);
  padding: 5rem 2rem;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 0 5%;
}

.portfolio-item {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  flex: 1 1 300px;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 0.2rem solid #0ef;
  border-radius: 10%;
}

.portfolio-item h2 {
  color: var(--main-color);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.portfolio-item p {
  color: #fff;
  font-size: 2.5rem;
  flex-grow: 1;
}

.portfolio-item span {
  color: #4d94ff;
  font-size: 2.5rem;
}
.contenue {
  padding: 10rem 5% 5rem;
  text-align: center;
}

.contenue h3 {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 4rem;
}

/* NOUVEAUX STYLES POUR LES BACKGROUNDS DES SECTIONS CONTENUES */
.contenue1 {
  background-color: var(--second-color); /* Gris un peu plus clair */
  padding: 5rem 5%; /* Ajout de padding pour l'espace intérieur */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 0; /* Pas de marge entre les sections contiguës */
  flex-wrap: wrap;
}

.contenue2 {
  background-color: var(--bg-color); /* Gris foncé principal */
  padding: 5rem 5%; /* Ajout de padding pour l'espace intérieur */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 0; /* Pas de marge entre les sections contiguës */
  flex-wrap: wrap;
}

.contenue1-img, .contenue2-img {
  flex: 1;
  min-width: 300px; /* S'assure que les images ne deviennent pas trop petites */
  max-width: 500px;
}

.contenue1-img img, .contenue2-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 0.2rem solid var(--main-color);
  border-radius: 1rem;
}

.contenue1-txt, .contenue2-txt {
  flex: 1;
  min-width: 300px; /* S'assure que le texte ne devient pas trop petit */
  max-width: 600px;
  text-align: left;
  font-size: 1.8rem;
}

.contenue1-txt ul, .contenue2-txt ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-top: 1rem;
}

.contenue1-txt li, .contenue2-txt li {
  margin-bottom: 0.8rem;
}

.button-container {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start; /* Aligne les boutons à gauche dans le bloc de texte */
}

.contenue-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--main-color);
  color: var(--second-color);
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: .5s;
}

.contenue-btn:hover {
  background: var(--second-color);
  color: var(--main-color);
  border: 1px solid var(--main-color);
}




/* Contact Section -- MODIFIÉ ICI */
.Contact {
  padding: 4rem 0;
  min-height: 30vh; /* On garde la hauteur pour avoir un effet "section finale" */
  display: flex;
  flex-direction: column;
  justify-content: center; /* <-- LA MODIFICATION CLÉ : On centre le contenu au lieu de le coller en bas */
  align-items: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-icons .icon a {
  font-size: 5rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.social-icons .icon a:hover {
  color: var(--main-color);
}

.footer {
    margin-top: 3rem;
}

.footer-text p {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  html {
    font-size: 55%;
  }
  .home {
    flex-direction: column;
    text-align: center;
    padding: 10rem 5% 5rem;
  }
  .home-img-cerlce {
    width: 250px;
    height: 250px;
    margin-top: 2rem;
  }
  .about-content {
    flex-direction: column;
  }
  .about-img {
    width: 70%;
    height: auto;
    margin: 2rem 0;
  }
  .portfolio-item {
    flex-basis: 100%;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  .logo {
      margin-left: 0;
  }
  #menu-icon {
    display: block;
    cursor: pointer;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    text-align: center;
    transition: .3s;
  }
  .navbar.active {
    right: 0;
  }
  .navbar a {
    display: block;
    padding: 2rem;
    font-size: 2rem;
  }
  .home-img-cerlce {
    width: 50vw;
  }
  .portfolio-item {
    max-width: 95%;
  }
  .timeline-content {
    max-width: 90%;
  }
  .contact .contact-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 45%;
  }
  .title {
    font-size: 6rem;
  }
  .title-text {
    font-size: 3rem;
  }
  .contact h2 {
    font-size: 3rem;
  }
  .footer-text p {
    font-size: 1.6rem;
  }
}
