/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Rosarivo&display=swap');

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #000;
  background-color: #fff;
}

/* Barre de Navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #000;
  z-index: 100;
  padding: 15px 20px;
}

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

.profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s;
}

.profile-img:hover {
  opacity: 0.8;
}

/* Styles pour le menu burger en responsive */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 200; /* Assurez-vous que le burger est au-dessus */
}

.burger .line {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s;
}

/* Animation du menu burger */
.burger.toggle .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle .line:nth-child(2) {
  opacity: 0;
}

.burger.toggle .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Liens de navigation par défaut (version desktop) */
.nav-links {
  list-style: none;
  display: flex; /* Affiche les liens en version desktop */
  gap: 20px;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Rosarivo', serif;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #362ED7;
}


/* Cacher les liens de navigation uniquement en mode mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Masque les liens en mode mobile */
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 20px;
    z-index: 100;
  }

  .nav-links.active {
    display: flex; /* Affiche les liens lorsqu'on clique sur le burger en mode mobile */
  }

  .burger {
    display: flex; /* Affiche le menu burger uniquement en mode mobile */
  }
}

/* Afficher les liens de navigation lorsqu'on clique sur le burger */
.nav-links.active {
  display: flex;
}

/* Responsive */
@media (max-width: 768px) {
  .burger {
    display: flex; /* Affiche le menu burger en mode responsive */
  }

  .nav-links {
    display: none; /* Masquer par défaut */
  }

  .nav-links.active {
    display: flex;
  }
}


/* Section Hero Styles */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
}

/* Mise à jour de la barre des réseaux sociaux pour qu'elle reste dans la section Héro */



/* Barre des réseaux sociaux pour Mobile/Tablette */
/* Barre des réseaux sociaux pour Desktop */
.social-container {
  position: fixed;
  top: 10px;
  right: 20px;
  display: flex;
  gap: 15px;
  background-color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 200;
}

/* Icônes Desktop */
.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s, transform 0.2s;
}

.icon-img {
  width: 24px;
  height: 24px;
}

/* Effet de survol */
.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Barre des réseaux sociaux pour Mobile/Tablette */
.social-container-mobile {
  display: none;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 15px;
  z-index: 200;
}

/* Icônes Mobile */
.social-icon-mobile {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s, transform 0.2s;
}

.icon-img-mobile {
  width: 24px;
  height: 24px;
}

/* Effet de survol Mobile */
.social-icon-mobile:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .social-container {
    display: none; /* Cache la barre desktop */
  }

  .social-container-mobile {
    display: flex; /* Affiche la barre mobile */
  }
}

@media (max-width: 600px) {
  .social-container-mobile {
    padding: 8px 15px;
    gap: 10px;
  }

  .social-icon-mobile {
    width: 35px;
    height: 35px;
  }

  .icon-img-mobile {
    width: 20px;
    height: 20px;
  }
}

/* Infobulle pour les icônes de réseaux sociaux */
.social-icon {
  position: relative;
}

/* Style de l'infobulle */
.social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px; /* Ajuste la position pour être sous l'icône */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 300;
}

/* Affichage de l'infobulle au survol */
.social-icon:hover::after {
  visibility: visible;
  opacity: 1;
}

/* Hero Content */
.hero-content {
  max-width: 90%;
  text-align: center;
}

.name-title {
  font-family: 'Rosarivo', serif;
  font-size: 4rem;
  margin-bottom: 20px;
  color: #000;
}

.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #000;
}

/* Silver Buttons */
.silver-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: white;
  color: #000;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow:

    0 0 2em black
}

.silver-btn:hover {
  background-color: #254ea4; /* Special Blue */
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero {
      padding: 20px;
  }

  .name-title {
      font-size: 3rem;
  }

  .subtitle {
      font-size: 1.2rem;
  }

  .social-sidebar {
      left: 10px;
      top: 20%;
  }
}

@media (max-width: 600px) {
  .name-title {
      font-size: 2.5rem;
  }

  .silver-btn {
      padding: 10px 20px;
      font-size: 1rem;
  }
}

/* Importation des polices Google */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500&display=swap');

/* Design Général */
.about-skills {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  align-items: flex-start;
}

/* Section Qui je suis */
.about-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Titre */
.about-title,
.skills-title {
  font-family: 'Rosarivo', serif;
  font-size: 2.5rem;
  text-align: center;
  color: #254ea4;
  margin-bottom: 20px;
}

/* Texte principal */
.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  letter-spacing: 0.5px;
}
/* Mise en valeur du texte */
.about-text p {
  margin-bottom: 20px;
}

.about-text p::first-line {
  font-weight: 500;
  color: #1a3b8f;
}

/* Bouton Télécharger le CV */
.cv-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1rem;
  color: #fff;
  background-color: #254ea4;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cv-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Section Compétences */
.skills-content {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Liste des compétences */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}


/* Style des bulles de compétence */
.skill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(240, 240, 240, 0.9);
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, background-color 0.3s;
  cursor: pointer;
}


.skill-item:hover {
  transform: scale(1.05);
  background-color: #254ea4;
  color: #fff;
}

/* Description des compétences */
.skill-description {
  margin-top: 30px;
  padding: 10px;
  font-size: 1rem;
  color: #333;
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-height: 50px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .skill-description {
    font-size: 0.9rem;
  }
}
/* Icônes devant les compétences */
.skill-item::before {
  content: '✓';
  margin-right: 10px;
  font-size: 1.2rem;
  color: #254ea4;
}

.skill-item:hover::before {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-skills {
    flex-direction: column;
    gap: 20px;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-btn {
    width: 100%;
    text-align: center;
  }
}

/* Section Projets */
.projects {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.projects-title {
  font-family: 'Rosarivo', serif;
  font-size: 3rem;
  margin-bottom: 40px;
}

.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.project-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 300px;
  flex: 1 1 300px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 15px;
}

.project-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}

.project-links a {
  display: inline-block;
  margin: 5px;
  color: #362ED7;
  font-weight: bold;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

/* Interaction des projets */
.project-card:hover ~ .project-card {
  opacity: 0.7;
  transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-list {
    flex-direction: column;
    gap: 20px;
  }

  .project-card {
    max-width: 90%;
  }
}
/* Invitation GitHub */
.github-invitation {
  text-align: center;
  padding: 40px 20px;
  margin-top: 30px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.github-invitation h2 {
  font-family: 'Rosarivo', serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.github-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #362ED7;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.github-btn:hover {
  background-color: #254ea4;
  transform: translateY(-3px);
}

/* Section Contact améliorée */
/* Section Contact améliorée avec image de fond */
.contact {
  position: relative;
  padding: 80px 20px;
  background-image: url('Image/background_contact.jpg'); /* Change l'URL si nécessaire */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Effet de parallaxe */
  color: black;
}
/* Overlay pour améliorer la lisibilité du texte */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ajuste l'opacité pour plus ou moins de contraste */
  z-index: 1;
}
/* Section Contact améliorée et responsive */
.contact {
  position: relative;
  padding: 60px 20px;
  background-image: url('Image/background_contact.jpg'); /* Change l'URL si nécessaire */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

/* Overlay pour améliorer la lisibilité */
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Formulaire de contact */
.contact-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Titre et texte du formulaire */
.contact-title {
  font-family: 'Rosarivo', serif;
  font-size: 2.5rem;
  color: #254ea4;
  text-align: center;
  margin-bottom: 20px;
}

.contact-title,
.contact-info p {
  color: #fff; /* Texte en blanc */
}

/* Champs du formulaire */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

/* Bouton de soumission */
.contact-form button {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 5px;
  background-color: #254ea4;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #1a3b8f;
}
/* Style de base */
.contact-link {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

/* Effet au survol */
.contact-link:hover {
  color: rgb(39, 80, 215);
  text-shadow: 0 0 5px rgba(37, 78, 164, 0.6);
}

/* Effet de clic */
.contact-link:active {
  color: #1a3b8f;
  text-decoration: underline;
}

/* Responsive (exemple d'ajustement pour mobile) */
@media (max-width: 600px) {
  .contact-link {
    font-size: 1rem;
    color: #1a3b8f;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  .contact {
    padding: 40px 10px;
    background-attachment: scroll; /* Désactive l'effet de parallaxe sur mobile */
  }

  .contact-form {
    max-width: 90%;
    padding: 20px;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-info p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form {
    max-width: 100%;
    padding: 15px;
  }

  .contact-title {
    font-size: 1.8rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea {
    background-color: rgba(255, 255, 255, 0.1); /* Légère transparence pour les champs */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  

  .contact-form button {
    padding: 10px;
    font-size: 0.9rem;
  }
}
/* Footer */
.footer {
  background-color: #000;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Rosarivo', serif;
}

.footer-content p {
  margin: 10px 0;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}
