/* Styles pour l'effet de machine à écrire */
.typewriter-paragraph {
  min-height: 3rem;
  position: relative;
}

.cursor {
  color: var(--primary-red);
  font-weight: bold;
  animation: none;
}

.cursor.blink {
  animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}/* Variables CSS pour la cohérence des couleurs */
:root {
  --primary-red: #dc143c;
  --dark-red: #8b0000;
  --cream: #f5f5dc;
  --dark-bg: #1a1a1a;
  --card-bg: #2a2a2a;
  --text-light: #e8e8e8;
  --text-muted: #b8b8b8;
  --accent-gold: #d4af37;
  --shadow-light: rgba(220, 20, 60, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: var(--dark-bg);
  color: var(--text-light);
}

/* Navigation moderne avec effet glassmorphism */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 20, 60, 0.3);
  z-index: 1000;
  padding: 0 2rem;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-light);
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a:hover {
  color: var(--cream);
  transform: translateY(-2px);
}

/* Sélecteur de langue */
.language-switcher {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(220, 20, 60, 0.1);
  border: 2px solid rgba(220, 20, 60, 0.3);
  border-radius: 25px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.lang-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.lang-btn:hover i {
  transform: rotate(180deg);
}

.lang-btn span {
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Section d'accueil simplifiée */
#welcome-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Canvas pour les particules */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, var(--shadow-light) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  z-index: 0;
}

#welcome-section h1 {
  font-family: "Takiyo", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
  position: relative;
  z-index: 2;
}

#welcome-section h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Styles uniformisés pour tous les titres de sections */
#about-section h2,
#skills-section h2,
#projects h1,
#contact-section h1 {
  font-family: "Takiyo", serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

#about-section h2::after,
#skills-section h2::after,
#projects h1::after,
#contact-section h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
  border-radius: 2px;
}

/* Section À propos */
#about-section {
  background: var(--dark-bg);
  padding: 6rem 2rem;
  border-bottom: 1px solid rgba(220, 20, 60, 0.1);
}

#about-section .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#about-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

#about-section p:last-child {
  margin-bottom: 0;
}

/* Section compétences */
#skills-section {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-bg) 100%);
  padding: 6rem 2rem;
  position: relative;
}

#skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 75% 25%, rgba(220, 20, 60, 0.05) 0%, transparent 50%);
}

#skills-section .container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.skill {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(220, 20, 60, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
  transition: left 0.6s ease;
}

.skill:hover::before {
  left: 100%;
}

.skill:hover {
  transform: translateY(-10px);
  border-color: var(--primary-red);
  box-shadow: 0 25px 50px rgba(220, 20, 60, 0.2);
}

.skill i {
  font-size: 3.5rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.skill:hover i {
  color: var(--accent-gold);
  transform: scale(1.15);
}

.skill p {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

/* Container générique */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section projets moderne */
#projects {
  background: var(--dark-bg);
  padding: 6rem 2rem;
  min-height: 100vh;
}

#project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-tile {
  flex: 0 0 350px;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s ease;
  border: 1px solid rgba(220, 20, 60, 0.1);
  position: relative;
}

.project-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
  transition: left 0.5s ease;
}

.project-tile:hover::before {
  left: 100%;
}

.project-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(220, 20, 60, 0.2);
  border-color: var(--primary-red);
}

.project-tile img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-tile:hover img {
  transform: scale(1.05);
}

.project-tile p {
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  background: var(--card-bg);
}

/* Section contact moderne */
#contact-section {
  background: var(--dark-bg);
  padding: 4rem 2rem;
}

#contacts {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(42, 42, 42, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(220, 20, 60, 0.2);
  box-shadow: 0 20px 40px var(--shadow-dark);
}

label {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.contact_input {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 2px solid rgba(220, 20, 60, 0.3);
  border-radius: 12px;
  background: rgba(26, 26, 26, 0.8);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact_input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
  transform: translateY(-2px);
}

.contact_input::placeholder {
  color: var(--text-muted);
}

textarea.contact_input {
  resize: vertical;
  min-height: 120px;
}

#submit_button {
  width: 100%;
  padding: 1rem 2rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#submit_button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

#submit_button:hover::before {
  left: 100%;
}

#submit_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

#submit_button:active {
  transform: translateY(0);
}

/* Footer moderne */
footer {
  background: var(--card-bg);
  padding: 2rem;
  border-top: 1px solid rgba(220, 20, 60, 0.3);
  text-align: center;
}

.footer_content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social_icons {
  display: flex;
  gap: 1.5rem;
}

.social_icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(220, 20, 60, 0.1);
  border: 2px solid rgba(220, 20, 60, 0.3);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social_icons a:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

.social_icons a i {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social_icons a:hover i {
  color: white;
}

small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations et effets */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  #navbar {
    padding: 0 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
  }
  
  .language-switcher {
    order: 1;
    margin-bottom: 0.5rem;
  }
  
  .nav-links a {
    padding: 1rem 1rem;
    font-size: 0.9rem;
  }
  
  .lang-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  #welcome-section {
    padding: 2rem 1rem;
  }
  
  #about-section,
  #skills-section {
    padding: 4rem 1rem;
  }
  
  #about-section p {
    font-size: 1.1rem;
  }
  
  .skills {
    gap: 1.5rem;
  }
  
  .skill {
    flex: 0 0 calc(50% - 0.75rem);
    padding: 2rem 1rem;
  }
  
  #projects {
    padding: 4rem 1rem;
  }
  
  #project-grid {
    gap: 1.5rem;
  }
  
  .project-tile {
    flex: 0 0 100%;
  }
  
  #contacts {
    margin: 0 1rem;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    padding: 1rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .lang-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .skill {
    flex: 0 0 100%;
    padding: 1.5rem 1rem;
  }
  
  .skill i {
    font-size: 3rem;
  }
}