﻿:root {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #4cc9f0;
  --accent-color: #f72585;
  --text-color: #2b2d42;
  --bg-color: #f8f9fa;
  --card-bg: #fff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --border-color: #edf2f7;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --success-color: #10b981;
  --error-color: #ef4444;
  --hero-bg: linear-gradient(135deg, #4361ee, #4cc9f0);
  --features-bg: #f8f9fa;
  --faq-bg: #edf2f7;
  --stats-bg: #3a56d4;
  --modal-bg: rgba(0, 0, 0, 0.7);
  --download-progress: #10b981;
  --border-radius: 16px;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --transition-slow: 0.3s ease;
  --transition-fast: 0.15s ease;
  --glassmorphism-bg: rgba(255, 255, 255, 0.25);
  --glassmorphism-border: 1px solid rgba(255, 255, 255, 0.18);
  --glassmorphism-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --glassmorphism-backdrop: blur(4px);
  
  /* Variables RGB pour les effets avancés */
  --primary-color-rgb: 67, 97, 238;
  --secondary-color-rgb: 76, 201, 240;
  --accent-color-rgb: 247, 37, 133;
  --text-color-rgb: 43, 45, 66;
  --bg-color-rgb: 248, 249, 250;
  
  /* Variables pour le thème clair */
  --hero-bg-light: linear-gradient(135deg, #e6eeff 0%, #f0f8ff 100%);
}

[data-theme="light"] {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #4cc9f0;
  --accent-color: #f72585;
  --text-color: #2b2d42;
  --bg-color: #f8f9fa;
  --card-bg: #fff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --border-color: #edf2f7;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --success-color: #10b981;
  --error-color: #ef4444;
  --hero-bg: var(--hero-bg-light);
  --features-bg: #f8f9fa;
  --faq-bg: #edf2f7;
  --stats-bg: #4361ee;
  --modal-bg: rgba(0, 0, 0, 0.7);
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --glassmorphism-bg: rgba(255, 255, 255, 0.25);
  --glassmorphism-border: 1px solid rgba(255, 255, 255, 0.18);
  --glassmorphism-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --glassmorphism-backdrop: blur(4px);
  
  /* Variables RGB pour les effets avancés */
  --primary-color-rgb: 67, 97, 238;
  --secondary-color-rgb: 76, 201, 240;
  --accent-color-rgb: 247, 37, 133;
  --text-color-rgb: 43, 45, 66;
  --bg-color-rgb: 248, 249, 250;
}

[data-theme="dark"] {
  --primary-color: #4361ee;
  --primary-hover: #3a56d4;
  --secondary-color: #4cc9f0;
  --accent-color: #f72585;
  --text-color: #f8f9fa;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --header-bg: rgba(30, 30, 30, 0.95);
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --success-color: #10b981;
  --error-color: #ef4444;
  --hero-bg: linear-gradient(135deg, #3a56d4, #4cc9f0);
  --features-bg: #181818;
  --faq-bg: #1a2733;
  --stats-bg: #2b2d42;
  --modal-bg: rgba(0, 0, 0, 0.85);
  --download-progress: #10b981;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  --glassmorphism-bg: rgba(30, 30, 30, 0.25);
  --glassmorphism-border: 1px solid rgba(30, 30, 30, 0.18);
  --glassmorphism-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --glassmorphism-backdrop: blur(4px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

header {
  background-color: var(--header-bg);
  padding: 1rem;
  box-shadow: 0 2px 15px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .search-container {
    order: 3;
    margin-top: 1rem;
    width: 100%;
  }
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.5s;
}

.logo:hover:after {
  transform: rotate(30deg) translate(10%, 10%);
}

.logo img {
  height: 30px;
  margin-right: 10px;
}

.theme-switch {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 20px;
  transition: transform 0.3s;
}

.theme-switch:hover {
  transform: rotate(15deg);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
  flex-grow: 1;
  max-width: 600px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #999;
}

.search-input {
  padding: 0.7rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  flex-grow: 1;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: box-shadow 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.clear-search {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.clear-search.visible {
  opacity: 1;
}

/* Hero Section */
.hero-section {
  background: var(--hero-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  color: white;
  padding: 5rem 1rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--card-shadow);
}

/* En mode clair, s'assurer que le texte du hero est lisible */
[data-theme="light"] .hero-section {
  color: #333333;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.15);
}

[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content p,
[data-theme="light"] .hero-stat {
  color: #333333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: white;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
  animation: float 8s ease-in-out infinite;
}

.circle-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -50px;
  animation: float 12s ease-in-out infinite;
}

.circle-3 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 50%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-stat span:first-of-type {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.hero-actions {
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: white;
  color: var(--primary-color);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Adaptation du bouton au thème */
.btn-primary.theme-aware {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .btn-primary.theme-aware {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary.theme-aware:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

[data-theme="dark"] .btn-primary.theme-aware:hover {
  background-color: var(--primary-hover);
}

/* Features Section */
.features-section {
  background-color: var(--features-bg);
  padding: 5rem 1rem;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.features-container h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  border-radius: var(--border-radius);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(67, 97, 238, 0.15);
  color: white;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover h3,
.feature-card:hover p {
  color: white;
}

.feature-card:hover .feature-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

.feature-card:hover .feature-icon i {
  color: white;
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(52, 152, 219, 0.1);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #777;
  font-size: 1rem;
}

.main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
}

.categories {
  margin-bottom: 2rem;
}

.categories h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.categories h2:after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -5px;
  left: 0;
  border-radius: 3px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.category-tab {
  padding: 0.6rem 1.2rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.category-tab:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.iso-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.iso-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  z-index: 2;
  backdrop-filter: var(--glassmorphism-backdrop);
  -webkit-backdrop-filter: var(--glassmorphism-backdrop);
}

.iso-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.iso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(var(--primary-color-rgb), 0.05) 0%,
    rgba(var(--secondary-color-rgb), 0.05) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.iso-card:hover::before {
  opacity: 1;
}

.iso-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.5s;
  opacity: 0;
  z-index: 1;
}

.iso-card:hover::after {
  opacity: 1;
  transform: rotate(30deg) translate(10%, 10%);
}

.iso-card-icon {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 1.5rem;
  opacity: 0.7;
}

.iso-card-header {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iso-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  word-break: break-word;
  padding-right: 35px;
}

.iso-details {
  display: flex;
  font-size: 0.9rem;
  color: #888;
  justify-content: space-between;
}

.iso-card-body {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.iso-size {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.download-btn {
  background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.download-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s;
}

.download-btn:hover::before {
  left: 100%;
}

.favorite-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color var(--transition-fast);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.favorite-btn:hover, .favorite-btn.active {
  color: #f1c40f;
}

/* FAQ Section */
.faq-section {
  background-color: var(--faq-bg);
  padding: 5rem 1rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.faq-container h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px var(--shadow-color);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-right: 2rem;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: #666;
  line-height: 1.6;
}

footer {
  background-color: var(--header-bg);
  padding: 3rem 1rem;
  margin-top: 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-info, .footer-links, .footer-newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-info h3:after,
.footer-links h3:after,
.footer-newsletter h3:after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-credits {
  margin-top: 2rem;
  color: var(--text-color);
  font-size: 0.95rem;
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-credits a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-credits a:hover {
  color: var(--secondary-color);
}

.footer-credits .fa-heart {
  color: #f72585;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.footer-credits a.dyskolos-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  padding: 0 2px;
  border-bottom: 1px solid var(--primary-color);
  cursor: pointer;
  display: inline-block;
}

.footer-credits a.dyskolos-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  transform: translateY(-2px);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* Stats bar */
.stats-bar {
  background-color: var(--card-bg);
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 8px var(--shadow-color);
}

.stats-bar .iso-count {
  font-weight: 500;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

/* No results styling */
.no-results {
  background-color: var(--card-bg);
  padding: 3rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin: 2rem 0;
}

.no-results p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.no-results i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

/* Timeline Section */
.timeline-section {
  background-color: var(--stats-bg);
  padding: 5rem 1rem;
}

.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-container h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  padding: 1rem 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
  padding-right: 2rem;
  left: 0;
}

.timeline-item:nth-child(even) {
  padding-left: 2rem;
  left: 50%;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  position: absolute;
  top: 20px;
  right: -10px;
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
}

.timeline-item[data-os="Windows"] .timeline-dot,
.timeline-item[data-os="Windows"] .timeline-date {
  background-color: #0078D7;
}

.timeline-item[data-os="MacOS"] .timeline-dot,
.timeline-item[data-os="MacOS"] .timeline-date {
  background-color: #999;
}

.timeline-item[data-os="Linux"] .timeline-dot,
.timeline-item[data-os="Linux"] .timeline-date {
  background-color: #E95420;
}

/* Download Modal */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  display: none;
}

.download-modal.open {
  display: flex !important;
}

.download-modal-content {
  width: 90%;
  max-width: 500px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.download-header {
  padding: 1.2rem;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-header h3 {
  font-weight: 600;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.close-modal:hover {
  transform: rotate(90deg);
}

.download-info {
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.download-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-details {
  flex-grow: 1;
}

.download-details h4 {
  margin-bottom: 1rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-progress-container {
  height: 10px;
  background-color: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.download-progress-bar {
  height: 100%;
  background-color: var(--download-progress);
  width: 0;
  transition: width 0.3s;
}

.download-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #666;
}

/* Modal and Keyboard Shortcuts */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.2rem;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-weight: 600;
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
}

.shortcut-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 1rem;
}

kbd {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-family: monospace;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 0.9rem;
}

[data-theme="dark"] kbd {
  background-color: #333;
  border-color: #444;
  color: #eee;
}

/* Favorite Tags */
.favorite-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.favorite-tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition-fast);
  box-shadow: 0 3px 8px rgba(67, 97, 238, 0.2);
}

.favorite-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.favorite-tag i {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}

.favorite-tag i:hover {
  background: rgba(255, 255, 255, 0.4);
}

.empty-favorites {
  font-style: italic;
  color: #999;
}

/* OS Badges */
.os-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: -3rem auto 3rem;
  max-width: 900px;
  position: relative;
  z-index: 5;
}

.os-badge {
  background: var(--glassmorphism-bg);
  border: var(--glassmorphism-border);
  box-shadow: var(--glassmorphism-shadow);
  backdrop-filter: var(--glassmorphism-backdrop);
  -webkit-backdrop-filter: var(--glassmorphism-backdrop);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s;
  cursor: pointer;
  color: var(--text-color);
}

.os-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
  background: rgba(var(--primary-color-rgb), 0.1);
}

.os-badge.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3);
}

.os-badge i {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  transition: transform 0.3s;
}

.os-badge:hover i {
  transform: scale(1.2);
}

.os-badge span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Stats Section */
.download-stats-section {
  background-color: var(--stats-bg);
  color: white;
  padding: 5rem 1rem;
  text-align: center;
}

.download-stats-container {
  max-width: 1200px;
  margin: 0 auto;
}

.download-stats-container h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
}

.download-stats-container h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.stat-info h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-info p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .search-container {
    width: 100%;
    max-width: 100%;
  }
  
  .iso-list {
    grid-template-columns: 1fr;
  }
  
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .timeline:before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px !important;
    padding-right: 0 !important;
    left: 0 !important;
  }
  
  .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }
  
  .features-section,
  .faq-section,
  .timeline-section {
    padding: 3rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    text-align: center;
  }
  
  .hero-section {
    padding: 3rem 1rem 4rem;
  }
  
  .features-section,
  .faq-section,
  .timeline-section {
    padding: 2rem 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 15px;
    bottom: 15px;
  }
}

/* Animation refinements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 1.5s infinite;
}

/* Page loader refinements */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Thème pour le chargement */
html.theme-preload,
html.theme-preload body {
  visibility: hidden;
}

html.theme-preload .page-loader {
  visibility: visible;
}

[data-theme="dark"] .page-loader {
  background-color: #121212;
  color: #ffffff;
}

[data-theme="dark"] .loader-spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--primary-color);
}

[data-theme="dark"] .loader-progress {
  background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .page-loader {
  background-color: #f8f9fa;
  color: #333333;
}

[data-theme="light"] .loader-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

/* Clear filter button style */
.clear-filter-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  margin-top: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.clear-filter-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* Scroll animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* Parallax effect for hero section */
.hero-section {
  background: var(--hero-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Modern scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Modern form elements */
input, select, textarea, button {
  font-family: var(--font-family);
  transition: all 0.3s;
  border-radius: 8px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
  border-color: var(--primary-color);
}

/* Tooltip styles */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: var(--card-bg);
  color: var(--text-color);
  text-align: center;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: var(--card-shadow);
  font-size: 0.875rem;
  white-space: nowrap;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Modern notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1000;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.notification-close:hover {
  opacity: 1;
}

/* Badge count for OS badges */
.badge-count {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  border-radius: 50px;
  padding: 0.25rem 0.5rem;
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.os-badge.clear-filter {
  background: var(--glassmorphism-bg);
  border: 1px solid var(--accent-color);
}

.os-badge.clear-filter:hover {
  background: rgba(var(--accent-color-rgb), 0.1);
}

/* Keyboard shortcut styles */
kbd {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 4px 6px;
  white-space: nowrap;
}

.search-shortcuts {
  position: absolute;
  right: 40px;
  display: none;
}

@media (min-width: 768px) {
  .search-shortcuts {
    display: block;
  }
}

/* Header button styles */
.header-button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 20px;
  transition: all 0.3s;
  position: relative;
}

.header-button:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Modern header design */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .search-container {
    order: 3;
    margin-top: 1rem;
    width: 100%;
  }
}

/* Modern footer */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  transform: translateX(5px);
  color: var(--primary-color);
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .feature-card, .stat-card {
    padding: 1.5rem;
  }
  
  .os-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .os-badge {
    margin-bottom: 0.5rem;
  }
}

/* Improved loading */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(var(--primary-color-rgb), 0.2);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Correction des stat cards - texte noir en mode clair */
[data-theme="light"] .download-stats-section {
  background-color: #f8f9fa;
  color: #333333;
}

[data-theme="light"] .download-stats-container h2 {
  color: #333333;
}

[data-theme="light"] .download-stats-container h2:after {
  background-color: var(--primary-color);
}

[data-theme="light"] .stat-card {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stat-info h3 {
  color: #222222;
  font-weight: 700;
  text-shadow: none;
}

[data-theme="light"] .stat-info p {
  color: #444444;
  font-weight: 500;
  text-shadow: none;
}

[data-theme="light"] .stat-icon {
  color: var(--primary-color);
}
