/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Neue', cursive;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header article super stylé */
.article-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="80" r="2.5" fill="rgba(255,255,255,0.12)"/></svg>') repeat;
  background-size: 100px 100px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.article-nav {
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.article-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Bangers', cursive;
  font-size: 1.2em;
  padding: 12px 25px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.4s ease;
  display: inline-block;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.article-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.article-nav a:hover::before {
  left: 100%;
}

.article-nav a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.article-title {
  font-family: 'Bangers', cursive;
  font-size: 4em;
  text-shadow: 
    4px 4px 0 #333,
    8px 8px 0 rgba(0,0,0,0.2);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  display: inline-block;
}

.article-title::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7b8, #96ceb4);
  background-size: 400% 400%;
  border-radius: 25px;
  z-index: -1;
  opacity: 0.3;
  animation: gradientShift 3s ease infinite;
  filter: blur(15px);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.article-meta {
  font-size: 1.2em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Section article */
.article-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.article-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="70" cy="70" r="1.5" fill="rgba(255,255,255,0.07)"/></svg>') repeat;
  background-size: 80px 80px;
  animation: floatReverse 25s linear infinite;
}

@keyframes floatReverse {
  0% { transform: translateY(0px); }
  100% { transform: translateY(80px); }
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  border: 4px solid #333;
  overflow: hidden;
  box-shadow: 
    0 15px 30px rgba(0,0,0,0.3),
    0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  z-index: 3;
  animation: articleEnter 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes articleEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7b8, #96ceb4);
  background-size: 400% 400%;
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientShift 4s ease infinite;
}

.article-container:hover::before {
  opacity: 0.7;
}

.article-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-bottom: 4px solid #333;
  transition: transform 0.4s ease;
  position: relative;
}

.article-container:hover .article-image {
  transform: scale(1.02);
}

.article-content {
  padding: 50px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.article-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 4px;
  height: 60px;
  background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
  border-radius: 2px;
}

.article-text {
  font-family: 'Comic Neue', cursive;
  font-size: 1.3em;
  line-height: 1.9;
  color: #444;
  text-align: justify;
  position: relative;
  padding-left: 20px;
}

.article-text::first-letter {
  font-family: 'Bangers', cursive;
  font-size: 4em;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.1em 0.1em 0;
  color: #ff6b6b;
  text-shadow: 2px 2px 0 #333;
}

.article-text p {
  margin-bottom: 25px;
}

.article-footer {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-top: 3px solid #333;
  position: relative;
}

.article-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 6px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 3px;
}

.article-author {
  font-family: 'Bangers', cursive;
  font-size: 1.4em;
  color: #555;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

/* Boutons d'action */
.back-actions {
  text-align: center;
  margin-top: 50px;
  position: relative;
  z-index: 3;
}

.back-actions a {
  display: inline-block;
  margin: 0 15px;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Bangers', cursive;
  font-size: 1.3em;
  border: 4px solid #333;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.back-actions a::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.6s ease;
}

.back-actions a:hover::before {
  left: 100%;
}

.btn-blog {
  background: linear-gradient(45deg, #ff6b6b, #ff5252);
  color: #fff;
}

.btn-blog:hover {
  background: linear-gradient(45deg, #ff5252, #ff4444);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
}

.btn-home {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: #fff;
}

.btn-home:hover {
  background: linear-gradient(45deg, #45b7b8, #3e9b9c);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(78, 205, 196, 0.4);
}

/* Section articles similaires */
.similar-articles {
  padding: 100px 0;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  position: relative;
}

.similar-articles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.06)"/></svg>') repeat;
  background-size: 120px 120px;
  animation: float 30s linear infinite;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.comic-title {
  font-family: 'Bangers', cursive;
  font-size: 3.5em;
  color: #fff;
  text-shadow: 
    4px 4px 0 #333,
    8px 8px 0 rgba(0,0,0,0.2);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.comic-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 2px;
}

.comic-subtitle {
  font-size: 1.3em;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.similar-card {
  background: #fff;
  border-radius: 25px;
  border: 4px solid #333;
  overflow: hidden;
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.2),
    0 6px 6px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: cardEnter 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.similar-card:nth-child(1) { animation-delay: 0.1s; }
.similar-card:nth-child(2) { animation-delay: 0.2s; }
.similar-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.similar-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7b8, #96ceb4);
  background-size: 400% 400%;
  border-radius: 25px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradientShift 3s ease infinite;
}

.similar-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.3),
    0 15px 25px rgba(0,0,0,0.2);
}

.similar-card:hover::before {
  opacity: 1;
}

.similar-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #333;
  transition: transform 0.4s ease;
}

.similar-card:hover .similar-image {
  transform: scale(1.05);
}

.similar-content {
  padding: 25px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.similar-title {
  font-family: 'Bangers', cursive;
  font-size: 1.6em;
  color: #333;
  margin-bottom: 15px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
  position: relative;
}

.similar-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.similar-card:hover .similar-title::after {
  width: 60px;
}

.similar-excerpt {
  color: #666;
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.6;
}

.similar-link {
  display: inline-block;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-family: 'Bangers', cursive;
  font-size: 1.1em;
  border: 3px solid #333;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.similar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.similar-link:hover::before {
  left: 100%;
}

.similar-link:hover {
  background: linear-gradient(45deg, #45b7b8, #3e9b9c);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .article-title {
    font-size: 2.5em;
  }
  
  .article-meta {
    font-size: 1em;
  }
  
  .article-content {
    padding: 30px 25px;
  }
  
  .article-text {
    font-size: 1.1em;
    padding-left: 10px;
  }
  
  .article-text::first-letter {
    font-size: 3em;
  }
  
  .similar-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .comic-title {
    font-size: 2.5em;
  }
  
  .back-actions a {
    margin: 10px 5px;
    padding: 12px 20px;
    font-size: 1.1em;
  }
  
  .article-section {
    padding: 60px 0;
  }
  
  .similar-articles {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .article-header {
    padding: 60px 0;
  }
  
  .article-title {
    font-size: 2em;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .article-text {
    font-size: 1em;
    text-align: left;
  }
  
  .similar-content {
    padding: 20px;
  }
  
  .back-actions {
    flex-direction: column;
  }
  
  .back-actions a {
    display: block;
    margin: 10px auto;
    width: 200px;
  }
}

/* Effets de particules avancés */
.article-section::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.similar-articles::after {
  content: '';
  position: absolute;
  top: 60%;
  right: 15%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}