* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(120deg, #1f1c2c, #5a5477);
  color: white;
  overflow-x: hidden;
  transition: background 0.3s ease-in-out;
}

.text-muted {
  color: #d3d3d3 !important;
}
/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(15, 32, 39, 0.9);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  background: #1f4068;
  transform: translateY(-3px);
}

.container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  padding: 50px 20px;
}

.detail-container {
  margin-top: 20px;
  text-align: center;
}
.detail-header {
  font-size: 18px;
  color: #007bff;
  cursor: pointer;
  display: inline-block;
  padding: 5px;
  text-align: center;
}
.detail-content {
  display: none;
  padding: 10px;
  background-color: #81868b2b;
  border-radius: 5px;
  margin-top: 5px;
}

.image-container img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

p {
  font-size: 1.2em;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.passions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.passion-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 13px;
  border-radius: 10px;
  width: 80%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .passion-item {
  background: #f0f0f0;
}

body.light-theme .detail-container {
  background-color: #e9ecef; 
}

body.light-theme .detail-header {
  background-color: #7f81833d; 
}

.passion-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.passion-images img {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}


/*******************************************/
/* Images par défaut (mode sombre) */
.nav-image {
  display: inline-block;
  width: 38px;
  height: 38px;
  background-size: cover;
  transition: background-image 0.3s ease;
}

/* Masquer l'icône de la page active */
.nav-image.active {
  display: none !important; /* Cache complètement l'icône */
}

.nav-image.home {
  background-image: url('Index-icon.png');
  display: none;
}

.nav-image.project {
  background-image: url('Project-icon.png');
  display: none;
}

.nav-image.cv {
  background-image: url('CV-icon.png');
  display: none;
}

.nav-image.about {
  background-image: url('About-icon.png');
  display: none;
}

.nav-image.contact {
  background-image: url('Contact-icon.png');
  display: none;
}

/* Images pour le mode clair */
body.light-theme .nav-image.home {
  background-image: url('Index-icon2.png');
}
body.light-theme .nav-image.project {
  background-image: url('Project-icon2.png');
}

body.light-theme .nav-image.cv {
  background-image: url('CV-icon2.png');
}

body.light-theme .nav-image.about {
  background-image: url('About-icon2.png');
}

body.light-theme .nav-image.contact {
  background-image: url('Contact-icon2.png');
}

.logo {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.menu {
  display: flex;
  justify-content: flex-start; /* Aligne les éléments à gauche */
  align-items: center; /* Centre verticalement */
  gap: 10px; /* Gère l'espacement entre les éléments */
}


.menu a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
  background-color: #1f4068;
  transform: translateY(-3px);
}

.menu-collapsed {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(15, 32, 39, 0.95);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.menu-collapsed a {
  margin: 10px 0;
  color: white;
  text-align: center;
}

.menu-collapsed.open {
  display: flex;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.7);
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #0093ce;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar .menu {
  display: flex;
  gap: 20px;
}

.navbar .menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar .menu a:hover {
  background: #0093ce;
  color: black;
}

.menu-icons {
  display: flex;
  gap: 10px;
}

.menu-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.sections {
  padding: 80px 20px;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #0093ce;
  text-align: center;
}

.section p {
  font-size: 1.2em;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 20px;
  font-size: 18px;
  color: white;
  background: #0093ce;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
  text-decoration: none;
}

.btn:hover {
  background: #00c2db;
}

/* Bouton CV */

#cv .section {
  text-align: center; /* Centre le contenu textuellement */
}

#cv .btn {
  display: inline-block; /* Maintient le bouton au centre */
  margin: 20px auto; /* Centrage vertical et horizontal */
}


/* Section projets */
.project-section {
  background-color: #3f3d51; /* Fond légèrement sombre */
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  color: white; /* Texte blanc */
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-title {
  font-size: 28px;
  font-family: 'Poppins', sans-serif;
  color: #0093ce; /* Titre en bleu clair */
  margin: 0;
}

.all-projects {
  font-size: 14px;
  color: #fb5f57; /* Lien en bleu clair */
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.all-projects:hover {
  color: #a80909; /* Couleur orange au survol */
  text-decoration: underline;
}

.project {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.project-item {
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05); /* Zoom au survol */
  filter: brightness(1.2); /* Éclaircit légèrement au survol */
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.project-item img:hover {
  transform: scale(1.05); /* Zoom sur l'image uniquement au survol */
}

.project-item h3 {
  font-size: 18px;
  margin: 10px 0;
  font-family: 'Poppins', sans-serif;
  color: #e0e0e0; /* Texte gris clair */
}

.project-link {
  font-size: 14px;
  color: #fb5f57; /* Lien en bleu clair */
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #a80909; /* Couleur orange au survol */
}


/* Footer */
/* Footer général */
footer {
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between; /* Sépare la gauche et la droite */
  align-items: center; /* Aligne verticalement les éléments */
  width: 100%;
}

/* Partie gauche */
.footer-left {
  display: flex;
  flex-direction: column; /* Empile les éléments verticalement */
  gap: 5px; /* Espace entre les lignes */
}

.footer-left p {
  margin: 0;
  font-size: 14px;
}

/* Lien copyright */
.footer-link {
  color: #ffffff; /* Blanc clair */
  text-decoration: none; /* Retire le soulignement */
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0093ce; /* Bleu clair au survol */
}

/* Partie droite (contact) */
.footer-right {
  display: flex;
  gap: 15px; /* Espace entre les icônes */
}

.contact-icon {
  color: #ffffff; /* Couleur des icônes */
  font-size: 23px; /* Taille des icônes */
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.contact-icon:hover i.fas.fa-envelope{
  color: #FFA500; /* Bleu clair au survol */
  transform: scale(1.2); /* Légère mise en valeur */
}

/* Icône Instagram avec dégradé au survol */
.contact-icon i.fab.fa-instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text; /* Applique le dégradé au texte */
  -webkit-text-fill-color: transparent; /* Rendre le fond transparent */
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-icon:hover i.fab.fa-instagram {
  transform: scale(1.2); /* Zoom léger au survol */
}

.contact-icon:hover i.fab.fa-linkedin {
  color: #0077b5; /* Couleur officielle LinkedIn */
}

/* scrollbar */
/* Largeur de la scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Largeur fine pour un design minimaliste */
}

/* Fond de la scrollbar (rail) */
::-webkit-scrollbar-track {
  background: #1f1c2c; /* Couleur sombre en cohérence avec le fond */
  border-radius: 10px; /* Coins arrondis pour un look moderne */
}

/* Curseur de la scrollbar */
::-webkit-scrollbar-thumb {
  background: #0093ce; /* Couleur bleu clair, en lien avec le thème */
  border-radius: 10px; /* Coins arrondis pour un style fluide */
  border: 2px solid #1f1c2c; /* Bordure sombre pour s'intégrer au rail */
}

/* Effet au survol */
::-webkit-scrollbar-thumb:hover {
  background: #00b7ff; /* Couleur orange pour une interaction visuelle subtile */
}

/* Coins du défilement */
::-webkit-scrollbar-corner {
  background: #1f1c2c; /* Même couleur que le rail pour uniformité */
}



/* Animation bienvenue */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-50px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
  0%, 20%, 40%, 60%, 80%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Animation bienvenue */
@media (max-width: 1050px) {
  .navbar {
    flex-direction: column; /* Disposition verticale pour la navbar */
    padding: 10px 0;
  }

  .menu {
    width: 100%; /* Utilise toute la largeur disponible */
    flex-wrap: wrap; /* Permet de gérer les petits écrans */
    justify-content: space-around; /* Répartit les boutons */
    gap: 10px; /* Ajoute un peu d'espace entre eux */
  }

  .passion-item {
    width: 95%;
  }

  .menu a {
    font-size: 16px;
    padding: 10px; /* Plus de padding pour cliquer facilement */
  }
  
  .nav-link .text {
      display: none; 
  }
  
  .navbar .logo {
      font-size: 0;
  } 

  .hero {
      height: 70vh;
  }

  .hero h1 {
      font-size: 3em;
  }

  .icon {
    display: none;
  }

  .text {
    display: none;
  }

  .nav-image {
    display: inline-block;
  }

  .contact-icon {
    font-size: 20px;
  }

  .nav-image.home {
    display: flex;
  }

  .nav-image.project {
    display: flex;
  }
  
  .nav-image.cv {
    display: flex;
  }
  
  .nav-image.about {
    display: flex;
  }
  
  .nav-image.contact {
    display: flex;
  }

  .passions {
    flex-direction: column;
    align-items: center;
  }

}

.espace{
  margin-top: 15px;
}

.espace2{
  margin-top: 50px;
}

/* Conteneur du switch */
.language-switch {
  display: flex;
  align-items: center;
  position: relative;
}

/* Cacher la checkbox */
.toggle-checkbox {
  display: none;
}

/* Style du switch */
.toggle-label {
  display: block;
  width: 50px;
  height: 24px;
  background: #ddd;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

/* Curseur rond qui bouge */
.toggle-ball {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

/* Drapeaux à l’intérieur du bouton */
.flag {
  width: 14px;
  height: 14px;
  position: absolute;
  opacity: 1;
  transition: opacity 0.3s;
}

/* Le drapeau anglais est caché par défaut */
.flag-en {
  opacity: 0;
}

.toggle-checkbox:checked + .toggle-label .toggle-ball {
  transform: translateX(26px);
}

/* Changement des drapeaux */
.toggle-checkbox:checked + .toggle-label .flag-fr {
  opacity: 0;
}

.toggle-checkbox:checked + .toggle-label .flag-en {
  opacity: 1;
}

/* Style du bouton de changement de thème */
.theme-toggle {
  display: flex;
  align-items: center;
  position: relative;
}

.theme-toggle .toggle-checkbox {
  display: none; /* Cache la checkbox */
}

.theme-toggle .toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #ffffff; /* Couleur par défaut (sombre) */
  gap: 10px; /* Espace entre les icônes */
  transition: color 0.3s ease;
}

/* Affiche uniquement le soleil par défaut */
.theme-toggle .toggle-label .fa-sun {
  display: inline-block;
}

.theme-toggle .toggle-label .fa-moon {
  display: none;
}

/* Lorsque la checkbox est cochée, affiche la lune */
.theme-toggle .toggle-checkbox:checked + .toggle-label .fa-sun {
  display: none;
}

.theme-toggle .toggle-checkbox:checked + .toggle-label .fa-moon {
  display: inline-block;
}

/* Ajout d'une animation au survol */
.theme-toggle .toggle-label:hover {
  transform: scale(1.1);
}

/* Thème clair */
body.light-theme {
  background: linear-gradient(120deg, #ffffff, #f7f9fc);
  color: #333333;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.9);
  color: #333333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .nav-link {
  color: #333333;
}

body.light-theme .nav-link:hover {
  background-color: #e0e0e0;
}

body.light-theme .logo {
  color: #007acc;
}

body.light-theme .hero {
  background-blend-mode: lighten;
  color: none;
}

body.light-theme .hero::before {
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .section h2 {
  color: #007acc;
}

body.light-theme .btn {
  background: #007acc;
  color: white;
}

body.light-theme .btn:hover {
  background: #005fa3;
}

body.light-theme .project-section {
  background-color: #f0f4f8;
  color: #333333;
}

body.light-theme .project-title {
  color: #007acc;
}

body.light-theme .all-projects {
  color: #007acc;
}

body.light-theme .all-projects:hover {
  color: #005fa3;
}

body.light-theme .project-item h3 {
  color: #333333;
}

body.light-theme .project-link {
  color: #007acc;
}

body.light-theme .project-link:hover {
  color: #005fa3;
}

body.light-theme footer {
  background: #f0f4f8;
  color: #333333;
}

body.light-theme .footer-link:hover {
  color: #007acc;
}

body.light-theme .contact-icon {
  color: #007acc;
}

body.light-theme .contact-icon:hover {
  color: #005fa3;
}

/* Style du switch de thème */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle .toggle-checkbox {
  display: none;
}

.theme-toggle .toggle-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-toggle .fa-sun {
  color: #ffb74d;
}

.theme-toggle .fa-moon {
  color: #78909c;
}

.theme-toggle .toggle-checkbox:checked + .toggle-label .fa-sun {
  display: none;
}

.theme-toggle .toggle-checkbox:checked + .toggle-label .fa-moon {
  display: inline-block;
}

/* Copyright pour le thème clair */
body.light-theme .footer-left .footer-link {
  color: #333333; /* Couleur noire ou sombre */
}

body.light-theme .footer-left .footer-link:hover {
  color: #007acc; /* Bleu clair au survol */
}

ul {
  text-align: left;
}