/* src/style.css */
:root {
  /* Mes couleurs pour mon mode clair */
  --bg-primary: #FEFFFC;
  --bg-secondary: #FDF9EF;
  --bg-tertiary: #f5f5f5;
  --text-primary: #232323;
  --text-secondary: #28282B;
  --accent-color: #73C2FB;
  --accent-hover: #B2FFFF;
  --border-color: rgba(35, 35, 35, 0.1);
  --nav-bg: rgba(254, 255, 252, 0.8);

  /* Mes polices */
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Autres variables */
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 12px;
}

body.theme-dark {
  /* Mes couleurs pour mon mode sombre */
  --bg-primary: #0F0B0A;
  --bg-secondary: #232323;
  --bg-tertiary: #28282B;
  --text-primary: #FEFFFC;
  --text-secondary: #FDF9EF;
  --accent-color: #B2FFFF;
  --accent-hover: #73C2FB;
  --border-color: rgba(254, 255, 252, 0.1);
  --nav-bg: rgba(15, 11, 10, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  cursor: none; /* Hide default for custom cursor */
}

/* Mon curseur personnalisé */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border-top: 15px solid var(--text-primary);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  transform: rotate(-45deg) translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0px 0px 1px var(--bg-primary));
  transition: transform 0.15s ease, border-color 0.15s ease;
  mix-blend-mode: difference;
}

#custom-cursor.hover {
  transform: rotate(-45deg) translate(-50%, -50%) scale(1.5);
  border-top-color: var(--accent-color);
}

#custom-cursor.click {
  transform: rotate(-45deg) translate(-50%, -50%) scale(0.8);
}

/* Mes utilitaires CSS */
.hidden { display: none !important; }
.font-bebas { font-family: var(--font-bebas); letter-spacing: 1px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-title { font-size: 3rem; margin-bottom: 3rem; color: var(--accent-color); }

/* Mon composant d'écran de langue */
#lang-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.lang-content { text-align: center; }
#lang-typing-text { font-size: 2.5rem; margin-bottom: 2rem; min-height: 3rem; }
.lang-options { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; transition: opacity 0.5s ease; }
.lang-options.visible { opacity: 1; }
.lang-btn {
  background: transparent; border: 2px solid var(--text-primary); color: var(--text-primary);
  padding: 0.8rem 1.5rem; border-radius: 30px; font-weight: 600; cursor: none;
  transition: all var(--transition);
}
.lang-btn:hover { background: var(--text-primary); color: var(--bg-primary); }

/* Ma transition d'éclipse entre thèmes */
.theme-transition-wrapper {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-transition-wrapper.active .celestial-body {
  animation: eclipse 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.celestial-body {
  width: 100vmax;
  height: 100vmax;
  border-radius: 50%;
  background: var(--text-primary);
  transform: scale(0);
}
@keyframes eclipse {
  0% { transform: translate(-100vw, -100vh) scale(0); }
  50% { transform: translate(0, 0) scale(1.5); }
  100% { transform: translate(100vw, 100vh) scale(0); }
}

/* Ma navigation */
header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(10px);
  padding: 1rem 0; border-bottom: 1px solid var(--border-color);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 2rem; font-weight: bold; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--accent-color); }
#theme-toggle { background: none; border: none; cursor: none; filter: invert(var(--icon-invert)); transition: transform var(--transition); }
#theme-toggle:hover { transform: scale(1.1); }
body.theme-light { --icon-invert: 0; }
body.theme-dark { --icon-invert: 1; }

/* Ma section d'en-tête (Hero) */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 80px; gap: 4rem;
}
.hero-content { flex: 1; }
.hero-content h1 { font-size: 5rem; line-height: 1; margin-bottom: 1rem; }
.tagline { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-stats { margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; }
.btn {
  display: inline-block; padding: 1rem 2rem; border-radius: 30px;
  font-weight: 600; text-decoration: none; transition: all var(--transition);
  cursor: none;
}
.btn.primary { background: var(--text-primary); color: var(--bg-primary); }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn.secondary { background: transparent; border: 2px solid var(--text-primary); color: var(--text-primary); }
.btn.secondary:hover { background: var(--text-primary); color: var(--bg-primary); }

.hero-visual { flex: 1; display: flex; justify-content: center; }
.image-wrapper {
  width: 400px; height: 500px; border-radius: var(--border-radius);
  overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: rotate(2deg); transition: transform var(--transition);
}
.image-wrapper:hover { transform: rotate(0deg) scale(1.02); }
.profile-img { width: 100%; height: 100%; object-fit: cover; }

/* Mes badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 20px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
}
.badge.large { padding: 1rem 1.5rem; font-size: 1rem; text-decoration: none;}
.badge-mini {
  font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 10px;
  background: var(--accent-color); color: #000; vertical-align: middle; margin-left: 0.5rem;
}
.skill-icon { width: 20px; height: 20px; }

/* Mon outil d'infobulle pour mes compétences en cours d'apprentissage */
.learning-badge {
  position: relative;
  border: 1px dashed var(--text-primary);
}
.learning-badge .skill-icon {
  filter: grayscale(100%) opacity(0.5);
  transition: all var(--transition);
}
.learning-badge:hover .skill-icon {
  filter: grayscale(0%) opacity(1);
}
.learning-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.learning-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-primary) transparent transparent transparent;
}
.learning-badge:hover .learning-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Ma grille de compétences */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.skill-category {
  background: var(--bg-secondary); padding: 2rem; border-radius: var(--border-radius);
  border: 1px solid var(--border-color); transition: transform var(--transition);
}
.skill-category:hover { transform: translateY(-5px); }
.skill-category h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Mes projets */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card {
  display: block; text-decoration: none; color: var(--text-primary);
  background: var(--bg-secondary); border-radius: var(--border-radius);
  border: 1px solid var(--border-color); overflow: hidden;
  transition: all var(--transition); position: relative;
}
.card-content { padding: 2rem; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--accent-color); }
.project-card p { color: var(--text-secondary); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: var(--accent-color); }

/* Mon contact et pied de page */
.contact-links { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.social-links { display: flex; gap: 1rem; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  transition: all var(--transition); margin-bottom: 4rem;
}
.social-btn:hover { background: var(--accent-color); transform: translateY(-3px); }

/* Mes ajustements pour les mobiles */
@media (max-width: 768px) {
  #custom-cursor { display: none !important; }
  body { cursor: auto; }
  
  #hero { flex-direction: column-reverse; text-align: center; justify-content: center; gap: 2rem;}
  .hero-content h1 { font-size: 3.5rem; }
  .hero-buttons { justify-content: center; flex-direction: column;}
  .nav-links, .social-links, .contact-links { justify-content: center; }
  .image-wrapper { width: 300px; height: 350px; }
  .section-title { text-align: center; font-size: 2.5rem; }
}
