:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --secondary: #2563eb;
  --secondary-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #111827;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --bg-dark: #e5e7eb;
  --header-height: 5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --primary: #ef4444;
  --primary-dark: #dc2626;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #f9fafb;
  --text-light: #d1d5db;
  --bg: #111827;
  --bg-alt: #1f2937;
  --bg-dark: #374151;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn-red {
  display: inline-block;
  background-color: #e63946;
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-red:hover,
.btn-red:focus,
.btn-red:active {
  background-color: #d62828;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.page-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition: var(--transition);
}

input, button, textarea, select {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg);
  box-shadow: var(--shadow);
  z-index: 100;
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text);
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: 0.5rem;
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.25rem;
  color: var(--text);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: var(--transition);
}

.theme-toggle {
  margin-left: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background-color: var(--bg-alt);
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--bg-dark);
}

.sun-icon, .moon-icon {
  position: absolute;
  transition: var(--transition);
}

body:not([data-theme="dark"]) .moon-icon {
  opacity: 0;
  transform: scale(0);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: scale(0);
}

/* Social Sidebar */
.social-sidebar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--text);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.twitter:hover {
  background-color: #1DA1F2;
  color: white;
}

.tiktok:hover {
  background-color: #000000;
  color: white;
}

.youtube:hover {
  background-color: #FF0000;
  color: white;
}

/* Hero Section */
.hero {
  padding: 6rem 0 3rem;
  background-color: var(--bg-alt);
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Featured Artist Section */
.featured-artist {
  padding: 5rem 0;
}

.artist-card {
  display: flex;
  gap: 3rem;
  background-color: var(--bg-alt);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.artist-image-container {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 1rem; /* Espace autour de l'image */
  box-sizing: border-box;
  position: relative;
}

.artist-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  border: 0.5rem solid var(--primary);
  display: block;
}

.artist-info {
  flex: 1;
  padding: 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.artist-role {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.artist-bio p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Manga World Section */
.manga-world {
  padding: 5rem 0;
  background-color: var(--bg);
}

.manga-intro {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.article-image-container {
  flex: 0 0 40%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 0.5rem solid var(--primary);
  aspect-ratio: 1/1;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.article-text p {
  margin-bottom: 1rem;
}

.manga-quote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--text-light);
}

/* Manga Showcase Section */
.manga-showcase {
  padding: 5rem 0;
  background-color: var(--bg-alt);
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.manga-card {
  background-color: var(--bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.manga-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.manga-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
}

.manga-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.manga-details {
  padding: 1.5rem;
}

.manga-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.manga-author {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.manga-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.manga-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background-color: var(--bg-alt);
  color: var(--text-light);
}

/* Profiles Section */
.profiles {
  padding: 5rem 0;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.profile-card {
  background-color: var(--bg-alt);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.profile-image-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.25rem solid var(--primary);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.profile-title {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.profile-bio {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.profile-link {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background-color: var(--bg);
  color: var(--text);
  font-weight: 500;
}

.profile-link:hover {
  background-color: var(--primary);
  color: white;
}

/* Magazine Section */
.magazine {
  padding: 5rem 0;
  background-color: var(--bg-alt);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.magazine-article {
  background-color: var(--bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 2rem;
}

.magazine-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 0;
  background-color: var(--bg);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-description {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.form-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bg-dark);
  border-radius: 0.25rem;
  background-color: var(--bg);
  color: var(--text);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
}

.link {
  color: var(--secondary);
  text-decoration: underline;
}

.link:hover {
  color: var(--secondary-dark);
}

/* Footer */
.footer {
  background-color: var(--bg-alt);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--bg-dark);
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .social-sidebar {
    display: none;
  }
  
  .artist-card, .manga-intro {
    flex-direction: column;
  }
  
  .artist-image-container, .article-image-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 99;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-list.active {
    transform: translateX(0);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .magazine-grid, .profiles-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .artist-image-container, .article-image-container {
    width: 250px;
    height: 250px;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .manga-grid {
    grid-template-columns: 1fr;
  }
}