/* --- Styles Généraux et Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  transition: background-color 0.5s, color 0.5s;
  line-height: 1.6;
}

.section-container {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Styles du Header et Navigation --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.5s, box-shadow 0.5s;
}

header .logo img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  padding: 5px;
  transition: transform 0.3s;
}

#theme-toggle:hover {
  transform: scale(1.1);
}

/* --- Styles du Language Switcher --- */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
}

.language-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.language-switcher button.active {
  opacity: 1;
  transform: scale(1.1);
}

.language-switcher button:hover {
  opacity: 0.8;
}

.language-switcher img {
  width: auto;
  height: 25px; /* Hauteur fixe pour tous les drapeaux */
}

/* --- Modes de Couleur (Clair et Sombre) --- */

/* Mode Clair */
body.light-mode {
  background-color: #f0f0f0;
  color: #333333;
}

body.light-mode header {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode nav ul li a {
  color: #333333;
}

body.light-mode nav ul li a:hover {
  color: #6a0dad; /* Violet vif */
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
  color: #6a0dad; /* Violet vif */
}

body.light-mode .project-link,
body.light-mode .contact-button {
  background-color: #6a0dad;
  color: #ffffff;
  border: none;
}

body.light-mode .project-link:hover,
body.light-mode .contact-button:hover {
  background-color: #5a0ca0;
}

body.light-mode .value-item,
body.light-mode .tip-item {
  background-color: #ffffff;
}

/* Mode Sombre */
body.dark-mode {
  background-color: #2b2b2b;
  color: #ffffff;
}

body.dark-mode header {
  background-color: rgba(43, 43, 43, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode nav ul li a {
  color: #ffffff;
}

body.dark-mode nav ul li a:hover {
  color: #d1b8e4; /* Mauve clair */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #d1b8e4;
}

body.dark-mode .project-link,
body.dark-mode .contact-button {
  background-color: #d1b8e4;
  color: #333333;
  border: none;
}

body.dark-mode .project-link:hover,
body.dark-mode .contact-button:hover {
  background-color: #c0a8d6;
}

body.dark-mode .value-item,
body.dark-mode .tip-item {
  background-color: #3b3b3b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Styles des sections --- */
#parcours {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 150px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}

.profile-picture {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid;
  animation: fadeIn 1s ease-in-out;
}

body.light-mode .profile-picture {
  border-color: #6a0dad;
}
body.dark-mode .profile-picture {
  border-color: #d1b8e4;
}

.bio {
  margin-top: 20px;
  max-width: 600px;
  animation: slideInUp 1s ease-in-out;
}

.skills-section {
  width: 100%;
  margin-top: 50px;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.skills-list li {
  background-color: rgba(106, 13, 173, 0.1);
  padding: 10px 20px;
  border-radius: 20px;
  transition: transform 0.3s, background-color 0.3s;
}

body.dark-mode .skills-list li {
  background-color: rgba(209, 184, 228, 0.1);
}

.skills-list li:hover {
  transform: translateY(-5px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 1s ease-in-out;
}

body.dark-mode .project-card {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  margin: 15px 15px 5px;
}

.project-card p {
  margin: 0 15px 15px;
}

.project-link {
  display: block;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.graphics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.graphic-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.graphic-item:hover {
  transform: scale(1.05);
}

.graphic-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: filter 0.3s;
}

.graphic-item:hover img {
  filter: brightness(50%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(106, 13, 173, 0.7);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  padding: 20px;
}

.graphic-item:hover .overlay {
  opacity: 1;
}

.values-list,
.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-item,
.tip-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
}

body.light-mode .value-item,
body.light-mode .tip-item {
  background-color: #ffffff;
}

body.dark-mode .value-item,
body.dark-mode .tip-item {
  background-color: #3b3b3b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.value-item:hover,
.tip-item:hover {
  transform: translateY(-10px);
}

.value-item h3,
.tip-item h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

#contact {
  text-align: center;
}

.contact-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 20px;
  transition: transform 0.3s, background-color 0.3s;
}

.contact-button:hover {
  transform: translateY(-5px);
}

.photo-contact-section {
  text-align: center;
  margin: 40px 0; /* Ajoute un espace au-dessus et en-dessous de la photo */
}

.photo-contact-section img {
  max-width: 100%; /* S'assure que l'image ne dépasse pas la largeur du conteneur */
  height: auto;
  border-radius: 50%; /* Pour un style d'image ronde, comme une photo de profil */
  width: 400px;
  object-fit: cover; /* Recadre l'image pour qu'elle remplisse l'espace sans déformation */
}

/* --- Styles du Footer et des réseaux sociaux --- */
footer {
  background-color: #333333; /* Un gris foncé */
  color: #ffffff; /* texte  blanc pour assurer la lisibilité */
  padding: 20px 0;
  text-align: center;
  padding: 30px;
}

.social-links {
  margin-bottom: 20px;
}

.social-links p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.social-icons a {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  height: 40px;
  width: auto;
}

.legal-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #cccccc; /* Couleur plus claire pour le lien */
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: #ffffff; /* Le texte devient blanc au survol */
}

/* --- Animations CSS --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Media Queries pour le Responsive Design --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding-top: 10px;
  }
  nav {
    margin-top: 10px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  nav ul li {
    margin: 5px 10px;
  }
  .language-switcher {
    margin-top: 10px;
    margin-left: 0;
  }
  #parcours {
    text-align: left;
  }
  .profile-info {
    flex-direction: column;
    text-align: center;
  }
  .skills-list {
    flex-direction: column;
    align-items: flex-start;
  }
  .skills-list li {
    width: 100%;
  }
}
/* --- Styles du CTA flottant "Contactez-moi" --- */
.fixed-cta-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999; /* Assure que le bouton est au-dessus des autres éléments */
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 50px; /* Bords arrondis */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  animation: pulse 1.5s infinite; /* Animation de pulsation */
}

.fixed-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: none; /* Désactive l'animation au survol */
}

/* Couleurs en mode clair */
body.light-mode .fixed-cta-button {
  background-color: #6a0dad; /* Mauve vif */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.4);
}

/* Couleurs en mode sombre */
body.dark-mode .fixed-cta-button {
  background-color: #d1b8e4; /* Mauve clair */
  color: #333333;
  box-shadow: 0 4px 15px rgba(209, 184, 228, 0.4);
}

/* Animation de pulsation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Media query pour le mobile */
@media (max-width: 768px) {
  .fixed-cta-button {
    bottom: 20px;
    right: 20px;
    padding: 12px 25px;
    font-size: 1em;
  }
}

/* ======================== */
/* Page de Mentions Légales */
/* ======================== */

/* Conteneur de la page */
.legal-mentions-container {
  background-color: #f3e9f3; /* Un mauve très clair */
  color: #000000; /* Texte noir */
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titre principal H1 */
.legal-mentions-container h1,
.legal-mentions-container h2 {
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #4b0082; /* Un violet plus foncé pour les titres */
}

/* Sous-titres H2 */
.legal-mentions-container h2 {
  font-size: 1.5rem;
}

/* Paragraphes */
.legal-mentions-container p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Liens */
.legal-mentions-container a {
  color: #4b0082; /* Mêmes couleurs que les titres pour la cohérence */
  text-decoration: underline;
}

.legal-mentions-container a:hover {
  color: #8a2be2;
}

/* Styles en mode sombre */
body.dark-mode .legal-mentions-container {
  background-color: #121212; /* Un fond sombre */
  color: #e0e0e0; /* Texte gris clair */
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .legal-mentions-container h1,
body.dark-mode .legal-mentions-container h2 {
  color: #d1b3ff; /* Un mauve clair pour les titres en mode sombre */
}

body.dark-mode .legal-mentions-container a {
  color: #d1b3ff;
}

body.dark-mode .legal-mentions-container a:hover {
  color: #e6e6fa;
}
