/* styles.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.8;
    font-size: 18px;
    color: #000;
    background-color: #fff;
    display: flex;
    flex-direction: column;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #ddd;
  }
  
.logo-port {
  width: auto;
  height: 65px;
}

* {
  font-family: 'Commissioner', sans-serif;
}

  
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav ul li a {
    position: relative;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  nav ul li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #604747; /* Couleur du soulignement (orange) */
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
  }
  
  nav ul li a:hover {
    color: #604747; /* Changement de couleur du texte */
    transform: scale(1.1); /* Agrandissement léger du texte */
  }
  
  nav ul li a:hover::after {
    transform: scaleX(1); /* Animation du soulignement */
  }
  
  main {
    display: flex;
    justify-content: space-between;
    padding: 40px;
  }
  
  .intro {
    max-width: 60%;
  }
  
  .intro h1 {
    font-size: 3rem;
    margin: 0;
  }
  
  .intro h1 span {
    color: #555;
  }
  
  .intro p {
    margin: 20px 0 0;
    font-size: 1.2rem;
    color: #666;
  }
  
  .projects {
    max-width: 45%;
    margin-right: 40px;
  }
  
  .projects h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .project-list {
    list-style: none;
    padding: 0;
  }
  
  .project-list > li {
    position: relative;
    margin: 20px 0;
  }
  
  .project-list > li > a {
    position: relative;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .project-list > li > a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #8f7474; /* Couleur du soulignement */
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
  }
  
  .project-list > li > a:hover {
    color: #8f7474; /* Changement de couleur du texte */
    transform: scale(1.1); /* Agrandissement léger du texte */
  }
  
  .project-list > li > a:hover::after {
    transform: scaleX(1); /* Animation du soulignement */
  }
  
  .sub-list {
    list-style: none;
    display: none;
    padding-left: 20px;
  }
  
  .sub-list li {
    margin: 5px 0;
  }
  
  .sub-list li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
  }
  
  .sub-list li a:hover {
    color: #007BFF;
  }
  
  /* Fenêtre pop-up */
  .about-me-popup {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%; /* Conserver la hauteur à 100% */
    background-color: white;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 30px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out; /* Transition fluide */
    overflow-y: auto; /* Permet le défilement */
    opacity: 0; /* Rend l'ouverture fluide */
    padding-bottom: 50px; /* Marge en bas pour le footer */
  }
  
/* Effet d'apparition fluide */
.about-me-popup.active {
  transform: translateX(0);
  opacity: 1;
}

/* Contenu de la pop-up */
.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

/* Image bien centrée avec halo */
.popup-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.popup-image img {
  border-radius: 50%;
  border: 2px solid #ddd;
  width: 120px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 193, 202, 0.849); /* Halo beige rosé */
  
  /* Supprimer image-rendering qui peut altérer la qualité */
  image-rendering: auto;
  
  /* Améliorer la netteté sur les écrans haute densité */
  transform: translateZ(0); /* Peut améliorer le rendu sur certains navigateurs */
  filter: contrast(1.1) saturate(1.1); /* Légère amélioration du contraste et de la saturation */
}

.popup-body {
  text-align: justify;
  max-width: 90%;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  padding: 0 20px;
  overflow-y: auto; /* Permet le scroll si le texte est trop long */
}

/* Bouton de fermeture */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

/* Footer */
.popup-footer {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 20px;
  color: #555;
}

.fenep {
  margin: 20px;
  font-size: 1rem;
  color: #1e1a1a;
  margin-top: 25px;

}






































/* =========================
   RESPONSIVE – TABLETTE
========================= */
@media screen and (max-width: 1024px) {

  header {
    padding: 20px;
  }

  main {
    flex-direction: column;
    gap: 40px;
    padding: 30px;
  }

  .intro {
    max-width: 100%;
  }

  .intro h1 {
    font-size: 2.4rem;
  }

  .projects {
    max-width: 100%;
    margin-right: 0;
  }

  .projects h3 {
    font-size: 1.8rem;
  }

  /* Pop-up plus large */
  .about-me-popup {
    width: 70%;
  }
}

/* =========================
   RESPONSIVE – MOBILE
========================= */
@media screen and (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: row;      /* ← reste horizontal */
    justify-content: center;
    flex-wrap: wrap;          /* ← évite que ça déborde */
    gap: 15px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }


  main {
    padding: 20px;
  }

  .intro h1 {
    font-size: 2rem;
    text-align: center;
  }

  .intro p {
    text-align: center;
    font-size: 1.1rem;
  }

  .projects h3 {
    text-align: center;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Pop-up en plein écran */
  .about-me-popup {
    width: 100%;
    padding: 20px;
  }

  .popup-body {
    font-size: 1rem;
  }
}

/* =========================
   PETITS TÉLÉPHONES
========================= */
@media screen and (max-width: 480px) {

  .intro h1 {
    font-size: 1.6rem;
  }

  .projects h3 {
    font-size: 1.5rem;
  }

  .project-list > li > a {
    font-size: 1.1rem;
  }

  .popup-image img {
    width: 100px;
  }
}
