/* Variables - Mode Sombre Permanent */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --text-dark: #f7fafc;
  --text-light: #a0aec0;
  --bg-light: #2d3748;
  --bg-dark: #1a202c;
  --white: #2d3748;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* Style de base - Toujours sombre */
body {
  background-color: #1a202c !important;
  color: #f7fafc !important;
  transition: all 0.3s ease;
}

/* Sections principales */
.hero, 
.about, 
.skills, 
.projects, 
.contact, 
.timeline {
  background-color: #1a202c !important;
  color: #f7fafc !important;
}

/* Éléments avec arrière-plan */
.skill-item,
.project-card,
.contact-form {
  background-color: #2d3748 !important;
  color: #f7fafc !important;
  border: 1px solid #4a5568 !important;
}

/* Timeline content - desktop seulement */
@media (min-width: 769px) {
  .timeline-content {
    background-color: #2d3748 !important;
    color: #f7fafc !important;
    border: 1px solid #4a5568 !important;
  }
}

.mobile-menu {
  background-color: #1a202c !important;
  color: #f7fafc !important;
}

/* Formulaires */
input,
textarea {
  background-color: #2d3748 !important;
  color: #f7fafc !important;
  border-color: #4a5568 !important;
}

input::placeholder,
textarea::placeholder {
  color: #a0aec0 !important;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes progressAnimation {
  to {
    width: var(--progress-width);
  }
}

/* Animation Classes */
.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(45, 55, 72, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .logo {
  color: #ffffff !important;
}

.navbar .nav-menu li a {
  color: #ffffff !important;
}

.navbar .hamburger span {
  background: #ffffff !important;
}

.navbar.scrolled {
  background: rgba(26, 32, 44, 0.98) !important;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(102, 126, 234, 0.5);
  padding: 0.5rem 0;
}

.navbar.scrolled .logo {
  color: #f7fafc !important;
}

.navbar.scrolled .nav-menu li a {
  color: #f7fafc !important;
}

.navbar.scrolled .hamburger span {
  background: #f7fafc !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--primary-color);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu li a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  width: 25px;
  height: 3px;
  margin: 2px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

/* Assurer que les animations JavaScript sont visibles */
.hero .hero-background-effect {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Canvas de fond pour les circuits animés */
body > canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.6 !important;
}

/* Background animated elements */
.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: floatUpDown 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  left: 60%;
  animation-delay: 4s;
}

.floating-shape:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 40%;
  animation-delay: 1s;
}

.floating-shape:nth-child(5) {
  width: 40px;
  height: 40px;
  top: 70%;
  left: 20%;
  animation-delay: 3s;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

/* Parallax background shapes */
.parallax-bg {
  position: absolute;
  width: 100%;
  height: 120%;
  top: -10%;
  left: 0;
  z-index: 0;
  opacity: 0.3;
}

.parallax-shape {
  position: absolute;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 20px;
  transform: rotate(45deg);
}

.parallax-shape:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: -5%;
}

.parallax-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 50%;
  right: -5%;
}

.parallax-shape:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 70%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>');
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

.hero-content .subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards;
}

@media (min-width: 768px) {
  .hero-content .subtitle {
    font-size: 1.5rem;
  }
}

.hero-content .description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-content .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 2px;
  height: 30px;
  background: var(--white);
  margin: 0 auto;
  opacity: 0.7;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn.btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn.btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn.btn-gradient {
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
}

.btn.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* About Section */
.about {
  position: relative;
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .about-text h2 {
    font-size: 3rem;
  }
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  background: var(--gradient);
  border-radius: 20px;
  z-index: -1;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-item {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  will-change: transform;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.skill-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.skill-item:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  margin-bottom: 1rem;
}

.skill-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.skill-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

/* Projects Section */
.projects {
  position: relative;
  background: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 200px;
  background: var(--gradient);
  display: flex;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.project-image:hover img {
  transform: scale(1.05);
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-image:hover::before {
  transform: translateX(100%);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.project-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-links a.github-link {
  background: var(--text-dark);
  color: var(--white);
}

.project-links a.github-link:hover {
  background: var(--primary-color);
}

.project-links a.demo-link {
  background: var(--gradient);
  color: var(--white);
}

.project-links a.demo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Contact Section */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .contact-content h2 {
    font-size: 3rem;
  }
}

.contact-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #4a5568;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: #2d3748;
  color: #f7fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: #2d3748;
  border-top: 1px solid rgba(102, 126, 234, 0.3);
  color: #ffffff;
  text-align: center;
  padding: 2rem 0;
  position: relative;
  z-index: 100;
}

.footer p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 999;
  transition: left 0.3s ease;
  padding: 2rem;
}

.mobile-menu.active {
  left: 0;
}

.mobile-nav {
  list-style: none;
  padding-top: 4rem;
}

.mobile-nav li {
  margin-bottom: 2rem;
}

.mobile-nav li a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 5rem 0;
  background: var(--bg-dark);
  color: var(--text-dark);
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--accent-color) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.8;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--gradient);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 4px solid var(--bg-dark);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.3);
}

.timeline-content {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
  width: calc(50% - 2rem);
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.3);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -30px;
  border-left-color: var(--bg-light);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -30px;
  border-right-color: var(--bg-light);
}

.timeline-year {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  color: var(--text-dark);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-stroke: none !important;
  -webkit-text-stroke: none !important;
  text-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.timeline-content h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-stroke: none !important;
  -webkit-text-stroke: none !important;
  text-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-stroke: none !important;
  -webkit-text-stroke: none !important;
  text-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.timeline-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Timeline Mobile */
@media (max-width: 768px) {
  /* Force suppression de tous les contours sur mobile */
  .timeline-content,
  .timeline-content *,
  .timeline-content h3,
  .timeline-content h4,
  .timeline-content p {
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    -webkit-text-stroke-width: 0 !important;
    -webkit-text-stroke-color: transparent !important;
    text-shadow: none !important;
    outline: none !important;
    border: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
  }

  .timeline-container {
    padding: 1rem 0;
  }
  
  .timeline-line {
    display: none;
  }
  
  .timeline-item {
    flex-direction: column !important;
    margin: 0 0 2rem 0 !important;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: visible;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: column !important;
    border-left-color: var(--secondary-color);
  }
  
  .timeline-item:nth-child(3n) {
    border-left-color: var(--accent-color);
  }
  
  .timeline-dot {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    box-shadow: 0 0 0 4px var(--bg-dark);
  }
  
  .timeline-content {
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    position: relative !important;
  }
  
  .timeline-content::before {
    display: none;
  }
  
  .timeline-year {
    background: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    display: inline-block;
    position: absolute;
    top: -10px;
    right: 1rem;
    border-radius: 15px;
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
    outline: none !important;
    border: none !important;
  }
  
  /* Règle générale pour tous les textes de timeline en mobile */
  .timeline-item * {
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
    outline: none !important;
  }
  
  .timeline-content h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
    outline: none !important;
    border: none !important;
  }
  
  .timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
    outline: none !important;
    border: none !important;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
    outline: none !important;
    border: none !important;
  }
  
  .timeline-icon {
    display: none;
  }
  
  .timeline-item {
    transform: translateX(-30px);
    opacity: 0;
  }
  
  .timeline-item.animate {
    transform: translateX(0);
    opacity: 1;
  }
  
  .timeline-item:nth-child(odd) {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(102, 126, 234, 0.05) 100%);
  }
  
  .timeline-item:nth-child(even) {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(118, 75, 162, 0.05) 100%);
  }
  
  .timeline-item:nth-child(3n) {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(240, 147, 251, 0.05) 100%);
  }
}

/* Enhanced Button Effects */
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn i {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}

.btn:hover i {
  transform: scale(1.2) rotate(5deg);
}

.btn span {
  z-index: 2;
  position: relative;
}

.btn.btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
}

.btn.btn-primary:active {
  transform: translateY(-1px) scale(0.98) !important;
}

.btn.btn-outline {
  position: relative;
}

.btn.btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--white);
  transition: width 0.3s ease;
  z-index: 0;
  border-radius: 50px;
}

.btn.btn-outline:hover::after {
  width: 100%;
}

.btn.btn-outline:hover {
  transform: translateY(-3px) scale(1.02) !important;
}

.btn.btn-gradient {
  background-size: 200% 200%;
  background-position: 0% 50%;
  animation: pulse-glow 2s infinite;
}

.btn.btn-gradient:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
  background-position: 100% 50%;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow), 0 0 5px rgba(240, 147, 251, 0.3);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(240, 147, 251, 0.4);
  }
}

/* Typing Animation */
#typing-title {
  position: relative;
  min-height: 1.2em;
}

#typing-title::after {
  content: '|';
  position: absolute;
  right: -5px;
  top: 0;
  color: var(--primary-color);
  animation: blink 1s infinite;
  font-weight: 100;
}

#typing-title.typing-done::after {
  display: none;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Contact Email Copy Section */
.contact-email {
  margin: 2rem 0;
  text-align: center;
}

.email-copy-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 50px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(102, 126, 234, 0.2);
  gap: 1rem;
  transition: all 0.3s ease;
}

.email-copy-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.4);
}

.email-text {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.copy-email-btn {
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
  justify-content: center;
}

.copy-email-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.copy-email-btn:active {
  transform: scale(0.95);
}

.copy-email-btn i {
  font-size: 0.8rem;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .contact-email .email-copy-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    padding: 1rem 1.5rem !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .contact-email .desktop-email {
    display: none !important;
  }
  
  .contact-email .mobile-email {
    display: block !important;
    font-size: 1rem !important;
    text-align: center !important;
  }
  
  .contact-email .copy-email-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
  }
}

/* Responsive Design */
@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subtitle {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content .subtitle {
    font-size: 1rem;
  }
  
  .hero-content .description {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Styles pour le bouton voir plus */
.project-description {
  margin-bottom: 1rem;
}

.see-more-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.see-more-btn:hover {
  color: var(--secondary-color);
  transform: translateX(2px);
}

.see-more-btn i {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.see-more-btn:hover i {
  transform: scale(1.2);
}

.description-full {
  animation: fadeIn 0.3s ease-in-out;
}

.description-preview {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus indicators */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Typing animation */
#typing-title {
  min-height: 4rem;
  position: relative;
}

#typing-title::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--primary-color);
}

#typing-title.typing-done::after {
  display: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-item {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.skill-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.skill-item h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Back to top button - créé par JS */
.back-to-top {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 18px !important;
  z-index: 10000 !important;
  transition: all 0.3s ease !important;
  opacity: 0 !important;
  transform: scale(0) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.back-to-top.show {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.back-to-top:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Forcer l'affichage quand visible */
.back-to-top[style*="opacity: 1"] {
  pointer-events: auto !important;
}

.back-to-top[style*="opacity: 0"] {
  pointer-events: none !important;
}

/* Scroll progress bar - créé par JS */
.scroll-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0% !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) !important;
  z-index: 9999 !important;
  transition: width 0.3s ease !important;
  border-radius: 0 2px 2px 0 !important;
}

/* Custom cursor - créé par JS */
.custom-cursor {
  position: fixed !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.9) !important;
  pointer-events: none !important;
  z-index: 9998 !important;
  transition: transform 0.1s ease !important;
  mix-blend-mode: difference !important;
  opacity: 0.8 !important;
}

.cursor-trail {
  position: fixed !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.7) !important;
  pointer-events: none !important;
  z-index: 9997 !important;
  transition: all 0.3s ease !important;
  opacity: 0.6 !important;
}

/* Loading screen styles - créé par JS */
#loading-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, 
    rgba(20, 30, 48, 0.95) 0%, 
    rgba(36, 59, 85, 0.95) 50%, 
    rgba(20, 30, 48, 0.95) 100%) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
}