/* Styles modernes additionnels pour LGP-ISO */

/* Variables pour les couleurs et effets */
:root {
  --neumorphic-light: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --neumorphic-dark: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  --border-radius-xl: 24px;
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  
  /* Nouvelles variables */
  --glow-primary: 0 0 15px rgba(var(--primary-color-rgb), 0.4);
  --glow-accent: 0 0 15px rgba(var(--accent-color-rgb), 0.4);
  --glassmorphism: rgba(255, 255, 255, 0.1);
  --glassmorphism-dark: rgba(0, 0, 0, 0.2);
  
  /* Améliorations pour le thème clair */
  --card-border-light: 1px solid rgba(0, 0, 0, 0.08);
  --card-bg-light: #ffffff;
  --text-color-light: #333333;
  --bg-subtle-light: #f8f9fa;
  --hero-bg-light: linear-gradient(135deg, #e6eeff 0%, #f0f8ff 100%);
}

/* Styles pour le thème sombre */
[data-theme="dark"] {
  --neumorphic-light: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --neumorphic-dark: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --glassmorphism: rgba(255, 255, 255, 0.07);
  --glassmorphism-dark: rgba(0, 0, 0, 0.4);
}

/* Améliorations générales */
body.modern {
  scroll-padding-top: 100px;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease;
}

/* Styles spécifiques pour le thème clair */
body.modern[data-theme="light"],
body.modern:not([data-theme="dark"]) {
  background-color: var(--bg-subtle-light);
}

body.modern[data-theme="light"] .header-container,
body.modern:not([data-theme="dark"]) .header-container,
body.modern[data-theme="light"] footer,
body.modern:not([data-theme="dark"]) footer {
  background-color: var(--card-bg-light);
}

body.modern[data-theme="light"] .iso-card,
body.modern:not([data-theme="dark"]) .iso-card,
body.modern[data-theme="light"] .feature-card,
body.modern:not([data-theme="dark"]) .feature-card,
body.modern[data-theme="light"] .stat-card,
body.modern:not([data-theme="dark"]) .stat-card,
body.modern[data-theme="light"] .faq-item,
body.modern:not([data-theme="dark"]) .faq-item,
body.modern[data-theme="light"] .category-tab,
body.modern:not([data-theme="dark"]) .category-tab,
body.modern[data-theme="light"] .os-badge,
body.modern:not([data-theme="dark"]) .os-badge,
body.modern[data-theme="light"] .notification,
body.modern:not([data-theme="dark"]) .notification {
  background-color: var(--card-bg-light);
  border: var(--card-border-light);
}

/* Correction des couleurs de texte sur fond clair */
body.modern[data-theme="light"] .hero-section,
body.modern:not([data-theme="dark"]) .hero-section {
  color: #333333; /* Texte foncé sur fond clair */
  background: var(--hero-bg-light); /* Nouveau dégradé bleu pâle pour le thème clair */
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.15);
}

body.modern[data-theme="light"] .hero-content h1,
body.modern:not([data-theme="dark"]) .hero-content h1,
body.modern[data-theme="light"] .hero-content p,
body.modern:not([data-theme="dark"]) .hero-content p,
body.modern[data-theme="light"] .hero-stat,
body.modern:not([data-theme="dark"]) .hero-stat {
  color: #333333; /* Texte foncé pour la section héro */
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

body.modern[data-theme="light"] .feature-card p,
body.modern:not([data-theme="dark"]) .feature-card p {
  color: #555555; /* Couleur de texte plus foncée pour les paragraphes */
}

body.modern[data-theme="light"] .feature-card:hover p,
body.modern:not([data-theme="dark"]) .feature-card:hover p,
body.modern[data-theme="light"] .feature-card:hover h3,
body.modern:not([data-theme="dark"]) .feature-card:hover h3 {
  color: white; /* Texte blanc au survol sur fond coloré */
}

/* Correction des badges OS actifs */
body.modern[data-theme="light"] .os-badge.active,
body.modern:not([data-theme="dark"]) .os-badge.active {
  color: white; /* Texte blanc pour les badges actifs */
}

body.modern[data-theme="light"] .os-badge.active i,
body.modern:not([data-theme="dark"]) .os-badge.active i {
  color: white; /* Icônes blanches pour les badges actifs */
}

/* Correction pour les boutons */
body.modern[data-theme="light"] .download-btn,
body.modern:not([data-theme="dark"]) .download-btn {
  color: white;
}

/* Correction pour les cartes de fonctionnalités */
body.modern[data-theme="light"] .feature-icon i,
body.modern:not([data-theme="dark"]) .feature-icon i {
  color: var(--primary-color);
}

body.modern[data-theme="light"] .feature-card:hover .feature-icon i,
body.modern:not([data-theme="dark"]) .feature-card:hover .feature-icon i {
  color: white;
}

/* Correction pour les sections avec fond sombre */
body.modern[data-theme="light"] .download-stats-section,
body.modern:not([data-theme="dark"]) .download-stats-section {
  background-color: #f8f9fa;
  color: #333333;
}

body.modern[data-theme="light"] .download-stats-container h2,
body.modern:not([data-theme="dark"]) .download-stats-container h2 {
  color: #333333;
}

body.modern[data-theme="light"] .stat-card,
body.modern:not([data-theme="dark"]) .stat-card {
  background-color: white;
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.modern[data-theme="light"] .stat-info h3,
body.modern:not([data-theme="dark"]) .stat-info h3 {
  color: #222222;
  font-weight: 700;
  text-shadow: none;
}

body.modern[data-theme="light"] .stat-info p,
body.modern:not([data-theme="dark"]) .stat-info p {
  color: #444444;
  font-weight: 500;
  text-shadow: none;
}

body.modern[data-theme="light"] .stat-icon,
body.modern:not([data-theme="dark"]) .stat-icon {
  color: var(--primary-color);
}

/* Pour s'assurer que les cartes du bas sont bien lisibles */
body.modern[data-theme="light"] .stat-card .stat-info h3,
body.modern:not([data-theme="dark"]) .stat-card .stat-info h3 {
  font-weight: 700; /* Plus gras pour meilleure lisibilité */
  font-size: 2.5rem;
  color: #222222; /* Noir pour meilleure lisibilité sur fond blanc */
}

body.modern[data-theme="light"] .stat-card .stat-info p,
body.modern:not([data-theme="dark"]) .stat-card .stat-info p {
  font-weight: 500; /* Légèrement plus gras pour les paragraphes */
  font-size: 1.1rem;
  color: #444444; /* Gris foncé pour meilleure lisibilité sur fond blanc */
}

/* Arrière-plan avec motif subtil */
body.modern::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(var(--primary-color-rgb), 0.05) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(var(--accent-color-rgb), 0.05) 2px, transparent 0);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

body.modern[data-theme="dark"]::before {
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(var(--primary-color-rgb), 0.1) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(var(--accent-color-rgb), 0.1) 2px, transparent 0);
  opacity: 0.3;
}

/* Améliorer l'apparence des sections */
.hero-section, .features-section, .faq-section, .download-stats-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--secondary-color-rgb), 0.05) 100%);
}

body.modern[data-theme="light"] .hero-section,
body.modern:not([data-theme="dark"]) .hero-section {
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.08) 0%, rgba(var(--secondary-color-rgb), 0.08) 100%);
}

body.modern[data-theme="light"] .features-section, 
body.modern:not([data-theme="dark"]) .features-section, 
body.modern[data-theme="light"] .download-stats-section,
body.modern:not([data-theme="dark"]) .download-stats-section {
  background-color: white;
}

/* Header moderne avec effet glassmorphism amélioré */
header {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--neumorphic-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.modern[data-theme="light"] header,
body.modern:not([data-theme="dark"]) header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header:hover {
  box-shadow: var(--neumorphic-dark);
}

/* Logo animé */
.logo {
  position: relative;
  background-size: 200% auto;
  color: var(--primary-color);
  background-clip: text;
  -webkit-background-clip: text;
  transition: var(--transition-bounce);
  display: inline-block;
}

.logo:hover {
  transform: scale(1.05) translateY(-2px);
  text-shadow: var(--glow-primary);
}

.logo span {
  position: relative;
  z-index: 1;
}

.logo::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
  border-radius: 4px;
}

.logo:hover::before {
  width: 100%;
}

/* Barre de recherche améliorée */
.search-container {
  transition: all 0.3s ease;
  border-radius: 50px;
  background: var(--card-bg);
  box-shadow: var(--neumorphic-light);
  overflow: hidden;
  border: 1px solid transparent;
}

.search-container:focus-within {
  box-shadow: var(--neumorphic-dark), 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(var(--primary-color-rgb), 0.3);
}

.search-input {
  font-size: 1rem;
  background: transparent;
  transition: all 0.3s ease;
  border: none;
  padding: 0.8rem 2.8rem;
  width: 100%;
}

.search-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.search-container:focus-within .search-icon {
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.clear-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-color);
  opacity: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 5px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search.visible {
  opacity: 0.7;
  pointer-events: all;
}

.clear-search.visible:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  color: var(--accent-color);
  background-color: rgba(var(--text-color-rgb), 0.1);
}

/* Boutons améliorés */
.theme-switch, .header-button {
  background: var(--card-bg);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--neumorphic-light);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

/* Thème clair - boutons et switches */
body.modern[data-theme="light"] .theme-switch,
body.modern:not([data-theme="dark"]) .theme-switch,
body.modern[data-theme="light"] .header-button,
body.modern:not([data-theme="dark"]) .header-button {
  background-color: var(--card-bg-light);
  border: var(--card-border-light);
}

.theme-switch:hover, .header-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--neumorphic-dark);
  color: var(--accent-color);
}

.theme-switch::before, .header-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--glassmorphism) 0%, transparent 70%);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.theme-switch:hover::before, .header-button:hover::before {
  transform: scale(2);
  opacity: 1;
}

/* Badges OS améliorés */
.os-badge {
  border-radius: 50px;
  transition: var(--transition-bounce);
  box-shadow: var(--neumorphic-light);
  border: none;
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
}

.os-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.2);
}

.os-badge.active {
  background: var(--gradient-primary);
  box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.os-badge.active i, .os-badge.active span:not(.badge-count) {
  color: white;
}

.os-badge i {
  font-size: 1.8rem;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.os-badge:hover i {
  transform: scale(1.2) rotate(5deg);
}

.badge-count {
  transition: all 0.3s;
  background: var(--accent-color);
  color: white;
  font-weight: bold;
}

.os-badge:hover .badge-count {
  transform: scale(1.1);
  box-shadow: var(--glow-accent);
}

.os-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--glassmorphism), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.os-badge:hover::after {
  opacity: 1;
}

/* Refonte complète des cartes ISO */
.iso-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(var(--primary-color-rgb), 0.05);
  padding: 0;
  height: 100%;
}

/* En-tête de la carte avec icône */
.iso-card-icon {
  font-size: 3.5rem;
  background: transparent; /* Enlever le fond coloré */
  color: #2196F3; /* Couleur bleue pour l'icône */
  padding: 25px 0;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px; /* Hauteur fixe pour toutes les icônes */
}

.iso-card-icon::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
  content: "\f0f3"; /* Icône par défaut */
  font-size: 3.5rem;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.iso-card-icon.fa-brands.fa-windows::before {
  content: "\f17a"; /* Icône Windows */
}

.iso-card-icon.fa-brands.fa-apple::before {
  content: "\f179"; /* Icône Apple */
}

.iso-card-icon.fa-brands.fa-linux::before {
  content: "\f17c"; /* Icône Linux */
}

.iso-card-icon.fa-solid.fa-server::before {
  content: "\f233"; /* Icône Server */
}

.iso-card-icon.fa-solid.fa-hard-drive::before {
  content: "\f0a0"; /* Icône NAS */
}

.iso-card-icon.fa-solid.fa-compact-disc::before {
  content: "\f51f"; /* Icône CD */
}

.iso-card-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  transform: rotate(30deg);
}

.iso-card:hover .iso-card-icon::after {
  opacity: 1;
}

.iso-card:hover .iso-card-icon::before {
  transform: scale(1.2) translateY(-5px);
}

/* Corps de la carte */
.iso-name {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 15px 20px 5px;
  text-align: center;
  color: #2196F3;
  background: transparent;
  background-clip: initial;
  -webkit-background-clip: initial;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
}

.iso-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2196F3, #00BCD4);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.iso-card:hover .iso-name::after {
  width: 50px;
}

.iso-card:hover .iso-name {
  color: #2196F3;
  transform: scale(1.05);
}

.iso-details {
  padding: 5px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  text-align: center;
  margin-bottom: 5px;
  width: 100%; /* Assure que les détails occupent toute la largeur */
}

.iso-size {
  padding: 5px 15px;
  background-color: rgba(33, 150, 243, 0.08);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2196F3;
  transition: all 0.3s ease;
}

.iso-card:hover .iso-size {
  background-color: rgba(33, 150, 243, 0.15);
}

/* Conteneur pour les boutons */
.iso-card-actions {
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  width: 100%;
}

/* Style du bouton de téléchargement avec gradient amélioré */
.iso-card .download-btn {
  padding: 12px 25px;
  border-radius: 30px;
  background: linear-gradient(45deg, #2196F3, #00BCD4);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: none;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.iso-card .download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.5s ease;
}

.iso-card .download-btn:hover::before {
  left: 100%;
}

.iso-card .download-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

/* Bouton favori */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.favorite-btn.active {
  background-color: #e3f2fd; /* Fond bleu très clair */
  color: #2196F3; /* Étoile bleue */
}

/* Nouvelles animations pour les cartes */
@keyframes cardFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.iso-card {
  animation: fadeUpIn 0.5s ease forwards, cardFloat 6s ease-in-out infinite;
  animation-delay: 0s, 1s; /* Démarrer le flottement après l'apparition */
}

/* Ajustement des délais d'animation pour un effet cascade */
.iso-card:nth-child(4n+1) { animation-delay: 0.1s, 1.1s; }
.iso-card:nth-child(4n+2) { animation-delay: 0.2s, 1.2s; }
.iso-card:nth-child(4n+3) { animation-delay: 0.3s, 1.3s; }
.iso-card:nth-child(4n+4) { animation-delay: 0.4s, 1.4s; }

/* Animation subtile pour le nom de l'ISO */
.iso-card:hover .iso-name {
  color: #2196F3;
  transform: scale(1.05);
}

/* Animation de glow pour les cartes au survol */
.iso-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.iso-card:hover::after {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-decoration .circle {
  animation: floatAnimation 6s ease-in-out infinite;
}

.hero-decoration .circle:nth-child(2) {
  animation-delay: 1s;
}

.hero-decoration .circle:nth-child(3) {
  animation-delay: 2s;
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* Loader amélioré */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(var(--bg-color-rgb), 0.9);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Améliorations pour le loader en mode sombre */
body.modern[data-theme="dark"] .page-loader {
  background-color: rgba(18, 18, 18, 0.95);
}

/* Page loader amélioré pour le thème clair */
body.modern[data-theme="light"] .page-loader,
body.modern:not([data-theme="dark"]) .page-loader {
  background-color: rgba(255, 255, 255, 0.95);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
}

.loader-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse-rotate 2s ease infinite;
}

@keyframes pulse-rotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-radius: 50%;
  border-top-color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-progress {
  width: 200px;
  height: 4px;
  background-color: rgba(var(--text-color-rgb), 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.loader-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: progress 2s ease forwards;
}

@keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(var(--bg-color-rgb), 0.8);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* Back to top button */
.back-to-top {
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: var(--neumorphic-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
}

.back-to-top.show {
  transform: translateY(0);
  opacity: 0.9;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.4);
  opacity: 1;
}

/* Footer */
footer {
  position: relative;
  background: var(--card-bg);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
  padding-top: 40px;
}

body.modern[data-theme="light"] footer,
body.modern:not([data-theme="dark"]) footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
  position: relative;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.03), rgba(var(--secondary-color-rgb), 0.03));
  z-index: 0;
}

.footer-info h3, .footer-links h3, .footer-newsletter h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-info h3::after, .footer-links h3::after, .footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links a {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-color);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-links a i {
  color: var(--primary-color);
}

.footer-credits {
  margin-top: 30px;
  padding: 15px 0;
  border-top: 1px solid rgba(var(--text-color-rgb), 0.1);
}

.footer-credits p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.footer-credits p a.dyskolos-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-credits p a.dyskolos-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-credits .fa-heart {
  color: #e74c3c;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* Amélioration des liens dans le footer */
body.modern .footer-credits a.dyskolos-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 0 3px;
  border-bottom: 2px solid var(--primary-color);
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 1;
}

body.modern .footer-credits a.dyskolos-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  transform: translateY(-3px);
  text-shadow: var(--glow-primary);
}

body.modern .footer-credits a.dyskolos-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  transition: height 0.3s;
  z-index: -1;
}

body.modern .footer-credits a.dyskolos-link:hover::after {
  height: 100%;
}

/* Améliorations pour mobile */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .features-section, .faq-section, .download-stats-section {
    padding: 3rem 0;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-info, .footer-links, .footer-newsletter {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .search-container {
    max-width: 200px;
  }
  
  .header-container {
    padding: 0.5rem;
  }
  
  .os-badges {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 1rem -1rem;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Dark mode improvements */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .iso-card,
[data-theme="dark"] .faq-item {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .feature-icon {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Améliorer l'accessibilité */
.download-btn, .category-tab, .os-badge, button {
  position: relative;
  overflow: hidden;
}

/* Améliorer la pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: var(--neumorphic-light);
}

.pagination button:hover {
  transform: translateY(-3px);
  box-shadow: var(--neumorphic-dark);
}

.pagination button.active {
  background: var(--gradient-primary);
  color: white;
}

/* Style pour les tooltips modernes */
.tooltip {
  position: relative;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: var(--card-bg);
  color: var(--text-color);
  text-align: center;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--neumorphic-light);
  font-size: 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--card-bg) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Effet d'ondulation pour les boutons */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Animation pour les éléments observés */
.fade-in, .counter, .feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animated, .counter.animated, .feature-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Amélioration des cartes de fonctionnalités */
.feature-card {
  transition: var(--transition-bounce);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--neumorphic-light);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

body:not([data-theme="dark"]) .feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
}

body:not([data-theme="dark"]) .feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Amélioration pour les cartes dans le thème clair */
body.modern[data-theme="light"] .feature-card:hover,
body.modern:not([data-theme="dark"]) .feature-card:hover,
body.modern[data-theme="light"] .iso-card:hover,
body.modern:not([data-theme="dark"]) .iso-card:hover,
body.modern[data-theme="light"] .os-badge:hover,
body.modern:not([data-theme="dark"]) .os-badge:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Amélioration des onglets de catégories en mode clair */
body.modern[data-theme="light"] .category-tab.active,
body.modern:not([data-theme="dark"]) .category-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Amélioration des FAQ en mode clair */
body.modern[data-theme="light"] .faq-question h3,
body.modern:not([data-theme="dark"]) .faq-question h3 {
  color: var(--text-color-light);
}

body.modern[data-theme="light"] .faq-answer p,
body.modern:not([data-theme="dark"]) .faq-answer p {
  color: #555555;
}

/* Amélioration du bouton principal en mode clair */
body.modern[data-theme="light"] .btn-primary.theme-aware,
body.modern:not([data-theme="dark"]) .btn-primary.theme-aware {
  background: white;
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}

body.modern[data-theme="light"] .btn-primary.theme-aware:hover,
body.modern:not([data-theme="dark"]) .btn-primary.theme-aware:hover {
  background: white;
  box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
  transform: translateY(-3px);
}

/* Améliorations pour la modale de téléchargement */
#download-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.85) !important;
  z-index: 10000 !important;
  display: none;
}

#download-modal.open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.modern #download-modal .download-modal-content {
  width: 95%;
  max-width: 500px;
  background-color: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

body.modern #download-modal .download-header {
  background: var(--gradient-primary);
  padding: 20px;
  color: white;
}

body.modern #download-modal .close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s;
}

body.modern #download-modal .close-modal:hover {
  background: rgba(255, 255, 255, 0.4);
}

body.modern #download-modal .download-info {
  padding: 25px;
}

body.modern #download-modal .download-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

body.modern #download-modal .download-progress-container {
  height: 8px;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

body.modern #download-modal .download-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  transition: width 0.3s ease;
}

body.modern #download-modal .download-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Animations supplémentaires pour les cartes ISO */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation lorsque les cartes apparaissent */
.iso-card {
  animation: fadeUpIn 0.4s ease-out forwards;
}

/* Animation lorsqu'une carte reçoit le focus ou est survolée */
.iso-card:hover .iso-card-icon {
  animation: pulse 1s ease infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

/* Animation pour les étoiles des favoris */
.favorite-btn.active i {
  animation: starTwinkle 1.5s ease infinite alternate;
  color: #2196F3; /* Étoile bleue */
}

@keyframes starTwinkle {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Animation quand on ajoute aux favoris */
.favorite-btn.active {
  animation: popIn 0.5s ease forwards;
}

/* Animation subtile pour le nom de l'ISO */
.iso-card:hover .iso-name {
  animation: colorShift 3s ease infinite alternate;
}

@keyframes colorShift {
  0% {
    color: var(--primary-color);
  }
  50% {
    color: var(--accent-color);
  }
  100% {
    color: var(--primary-color);
  }
}

/* Animation de l'apparition par rangées */
.iso-card:nth-child(4n+1) { animation-delay: 0.1s; }
.iso-card:nth-child(4n+2) { animation-delay: 0.2s; }
.iso-card:nth-child(4n+3) { animation-delay: 0.3s; }
.iso-card:nth-child(4n+4) { animation-delay: 0.4s; }

/* Effet de transition fluide pour tous les éléments des cartes */
.iso-card * {
  transition: all 0.3s ease;
}

/* Amélioration de l'icône des cartes ISO */
.iso-card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
  opacity: 0.85;
  text-align: center;
  transition: all 0.3s ease;
  transform-origin: center;
  position: relative;
}

.iso-card:hover .iso-card-icon {
  opacity: 1;
  transform: scale(1.15);
  color: var(--accent-color);
}

/* Effet de halo autour de l'icône au survol */
.iso-card-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.iso-card:hover .iso-card-icon::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

/* Animation d'entrée pour les cartes */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet au survol */
.iso-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 16px 32px rgba(33, 150, 243, 0.2);
  border-color: rgba(33, 150, 243, 0.2);
}

/* Category tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 0;
}

.category-tab {
  border-radius: 50px;
  transition: var(--transition-bounce);
  box-shadow: var(--neumorphic-light);
  border: none;
  background: var(--card-bg);
  padding: 0.7rem 1.3rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.85;
}

.category-tab:hover, .category-tab.active {
  transform: translateY(-3px);
  box-shadow: var(--neumorphic-dark);
  opacity: 1;
}

.category-tab.active {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
}

/* Notification */
.notification {
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: var(--neumorphic-dark);
  border-radius: var(--border-radius-xl);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.notification.show {
  transform: translateX(0);
}

.notification-title {
  color: var(--primary-color);
  font-weight: 600;
}

.notification-close {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
} 