/* === Variables globales Premium === */
:root {
  --transition-default: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Palette premium: Or rose, violet profond, bleu électrique */
  --primary-gold: #D4AF37;
  --primary-rose: #E63E6D;
  --primary-purple: #6C5CE7;
  --primary-blue: #0984E3;
  --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #E63E6D 50%, #6C5CE7 100%);
  --accent-gradient-alt: linear-gradient(45deg, #6C5CE7 0%, #0984E3 50%, #D4AF37 100%);
  
  --text-primary: #F8F9FA;
  --text-secondary: #E0E0E0;
  --text-muted: #B8B8B8;
  
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-tertiary: #1A1A28;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(212, 175, 55, 0.15);
  
  --shadow-premium: 0 24px 70px rgba(212, 175, 55, 0.18), 
                    0 8px 24px rgba(230, 62, 109, 0.08),
                    0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3), 
                 0 0 80px rgba(230, 62, 109, 0.15);
  
  /* Tailles fluides responsives */
  --font-size-base: clamp(14px, 2vw, 16px);
  --font-size-small: clamp(12px, 1.8vw, 14px);
  --font-size-large: clamp(16px, 2.2vw, 18px);
  --font-size-xl: clamp(18px, 2.5vw, 22px);
  --font-size-2xl: clamp(22px, 3vw, 28px);
  --font-size-3xl: clamp(28px, 4vw, 36px);
  --font-size-4xl: clamp(36px, 5vw, 56px);
  
  --spacing-xs: clamp(4px, 0.5vw, 8px);
  --spacing-sm: clamp(8px, 1vw, 12px);
  --spacing-md: clamp(12px, 1.5vw, 20px);
  --spacing-lg: clamp(20px, 2.5vw, 32px);
  --spacing-xl: clamp(32px, 4vw, 48px);
  --spacing-2xl: clamp(48px, 6vw, 80px);
  
  --border-radius-sm: clamp(8px, 1vw, 12px);
  --border-radius-md: clamp(12px, 1.5vw, 16px);
  --border-radius-lg: clamp(16px, 2vw, 24px);
  --border-radius-xl: clamp(24px, 3vw, 36px);
  --border-radius-full: 999px;
}

/* === Styles généraux === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, 
    #0A0A0F 0%, 
    #12121A 35%, 
    #1A1A28 65%,
    #0F0F18 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

/* Effet de particules animées en arrière-plan */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 62, 109, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(108, 92, 231, 0.02) 0%, transparent 50%);
  animation: particleMove 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(212, 175, 55, 0.02) 90deg,
    transparent 180deg,
    rgba(230, 62, 109, 0.02) 270deg,
    transparent 360deg
  );
  animation: rotateBackground 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}

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

@keyframes particleMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes rotateBackground {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Container universel pour contenu */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* === Liste accordéon Ultra-animée === */
#tweaks .tweaks-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

#tweaks details {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-smooth);
  position: relative;
  animation: slideInFromLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#tweaks details::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(212, 175, 55, 0.05) 0%, 
    rgba(230, 62, 109, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-default);
  pointer-events: none;
}

#tweaks details::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  transition: left 0.8s ease;
}

#tweaks details[open]::before {
  opacity: 1;
}

#tweaks details[open]::after {
  left: 100%;
}

#tweaks details[open] {
  box-shadow: var(--shadow-premium);
  transform: scale(1.01) translateX(var(--spacing-xs));
  border-color: rgba(212, 175, 55, 0.3);
}

#tweaks summary {
  cursor: pointer;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-large);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-default);
  position: relative;
  user-select: none;
}

#tweaks summary::after {
  content: "❯";
  font-size: 1.4em;
  transition: transform var(--transition-bounce);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

#tweaks details[open] summary::after {
  transform: rotate(90deg);
}

#tweaks summary:hover {
  background: var(--glass-bg-hover);
  padding-left: calc(var(--spacing-lg) + var(--spacing-xs));
}

#tweaks summary:active {
  transform: scale(0.98);
}

#tweaks details p {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  animation: fadeInExpand 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInExpand {
  from { 
    opacity: 0; 
    transform: translateY(-10px) scale(0.98); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* === En-tête Premium Ultra-animé === */
header {
  background: linear-gradient(160deg, 
    rgba(10, 10, 15, 0.95) 0%, 
    rgba(18, 18, 26, 0.92) 50%,
    rgba(26, 26, 40, 0.95) 100%);
  backdrop-filter: blur(30px) saturate(1.4);
  color: var(--text-primary);
  padding: clamp(60px, 10vw, 100px) var(--spacing-lg);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
              inset 0 -1px 0 rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
  animation: headerReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerReveal {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(230, 62, 109, 0.05) 30%,
    transparent 70%);
  animation: headerRotate 25s linear infinite;
  pointer-events: none;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0.6;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes headerRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
  50% { opacity: 0.8; box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
}

/* === Contenu principal Hyper-responsive === */
main {
  padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px);
  max-width: min(980px, 90vw);
  margin: clamp(40px, 6vw, 60px) auto;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(25px) saturate(1.3);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-smooth);
  position: relative;
  animation: mainReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes mainReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(212, 175, 55, 0.3) 0%,
    rgba(230, 62, 109, 0.2) 50%,
    rgba(108, 92, 231, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

main:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

/* === Titres Premium Ultra-stylisés === */
h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite, titleBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

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

@keyframes titleBounce {
  0% { transform: scale(0.8) translateY(-20px); opacity: 0; }
  60% { transform: scale(1.05) translateY(0); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

h1::after {
  content: "";
  display: block;
  width: clamp(60px, 15vw, 120px);
  height: clamp(3px, 0.5vw, 5px);
  background: var(--accent-gradient);
  margin: var(--spacing-md) auto 0;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  animation: underlineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes underlineExpand {
  from { width: 0; opacity: 0; }
  to { width: clamp(60px, 15vw, 120px); opacity: 1; }
}

h2, h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: var(--spacing-xl) 0 var(--spacing-md);
  background: linear-gradient(135deg, #D4AF37 0%, #E63E6D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 5s ease infinite;
  border-bottom: 2px solid rgba(212, 175, 55, 0.15);
  padding-bottom: var(--spacing-sm);
  position: relative;
  transition: all var(--transition-default);
}

h2:hover, h3:hover {
  transform: translateX(var(--spacing-xs));
  border-bottom-color: rgba(212, 175, 55, 0.4);
}

h2::before, h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: clamp(40px, 8vw, 60px);
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  animation: slideInFromLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* === Paragraphes optimisés === */
p {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Bouton CTA Ultra-Premium === */
.cta-button {
  display: inline-block;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  color: #fff;
  font-weight: 700;
  font-size: var(--font-size-large);
  padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 4vw, 2.8rem);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-default);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3),
              0 4px 16px rgba(230, 62, 109, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3),
                0 4px 16px rgba(230, 62, 109, 0.2);
  }
  50% {
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4),
                0 6px 20px rgba(230, 62, 109, 0.3);
  }
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0; 
  left: -100%;
  width: 100%; 
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-gradient-alt);
  opacity: 0;
  transition: opacity var(--transition-default);
}

.cta-button:hover::before {
  left: 200%;
}

.cta-button:hover::after {
  opacity: 0.3;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 50px rgba(212, 175, 55, 0.4),
              0 8px 24px rgba(230, 62, 109, 0.3);
  animation: none;
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

/* === Bouton retour en haut Mega-animé === */
.back-to-top {
  position: fixed;
  bottom: clamp(20px, 3vw, 30px);
  right: clamp(20px, 3vw, 30px);
  display: none;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  font-size: clamp(22px, 3vw, 28px);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3),
              0 4px 16px rgba(230, 62, 109, 0.2);
  transition: all var(--transition-default);
  z-index: 1000;
  animation: floatBounce 3s ease-in-out infinite, gradientFlow 5s ease infinite;
  backdrop-filter: blur(10px);
}

@keyframes floatBounce {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-8px) rotate(5deg); 
  }
  50% { 
    transform: translateY(-4px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-8px) rotate(-5deg); 
  }
}

.back-to-top:hover {
  transform: translateY(-6px) scale(1.1) rotate(360deg);
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.5),
              0 8px 24px rgba(230, 62, 109, 0.3);
  animation: none;
}

.back-to-top:active {
  transform: scale(0.9);
}

/* === Images Ultra-responsives === */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  margin: var(--spacing-lg) 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(212, 175, 55, 0.1);
  animation: imageReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

img:hover {
  transform: scale(1.03) translateY(-4px) rotate(1deg);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2),
              0 10px 30px rgba(230, 62, 109, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}

/* === Témoignages Premium === */
.testimonial {
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.05) 0%,
    rgba(230, 62, 109, 0.03) 100%);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin: var(--spacing-lg) 0;
  font-style: italic;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-left: 4px solid;
  border-image: var(--accent-gradient) 1;
  transition: all var(--transition-default);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: slideInFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial::before {
  content: """;
  position: absolute;
  top: -10px;
  left: var(--spacing-md);
  font-size: 80px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial:hover {
  transform: translateY(-4px) translateX(var(--spacing-xs));
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.15);
}

/* === FAQ Premium === */
.faq {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--glass-bg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.faq h4 {
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #D4AF37 0%, #E63E6D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-xl);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

/* === Caractéristiques Ultra-interactives === */
.features li {
  margin: var(--spacing-md) 0;
  font-size: var(--font-size-large);
  background: var(--glass-bg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-default);
  border-left: 3px solid transparent;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: slideInFromLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--animation-order, 0) * 0.08s);
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-default);
}

.features li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(212, 175, 55, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.features li:hover::before {
  opacity: 1;
}

.features li:hover::after {
  left: 100%;
}

.features li:hover {
  background: var(--glass-bg-hover);
  transform: translateX(var(--spacing-sm)) scale(1.02);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}

/* === NAVIGATION ULTRA PREMIUM Hyper-responsive === */
nav {
  max-width: min(1400px, 95vw);
  margin: clamp(40px, 6vw, 60px) auto;
  padding: clamp(20px, 3vw, 28px) clamp(30px, 4vw, 45px);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(40px) saturate(1.4);
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  position: relative;
  overflow: hidden;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

nav::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212, 175, 55, 0.1) 45deg,
    rgba(230, 62, 109, 0.08) 90deg,
    rgba(108, 92, 231, 0.1) 135deg,
    rgba(9, 132, 227, 0.08) 180deg,
    transparent 225deg
  );
  animation: navAmbientFloat 35s linear infinite;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 62, 109, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(108, 92, 231, 0.04) 0%, transparent 50%);
  animation: navParticleFloat 18s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes navAmbientFloat {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.08); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes navParticleFloat {
  0% { opacity: 0.6; transform: translateY(0px) scale(1); }
  100% { opacity: 0.3; transform: translateY(-12px) scale(1.05); }
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 10;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding: clamp(14px, 2vw, 18px) clamp(20px, 3vw, 32px);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  backdrop-filter: blur(12px);
  min-height: clamp(44px, 6vw, 52px);
  white-space: nowrap;
  animation: linkFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--link-order, 0) * 0.1s);
}

@keyframes linkFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: inherit;
  z-index: -2;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: clamp(6px, 1vw, 8px);
  left: 50%;
  width: 0%;
  height: clamp(2px, 0.4vw, 3px);
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  z-index: -1;
}

nav a:hover::before,
nav a:focus-visible::before {
  opacity: 0.15;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after {
  width: 80%;
}

nav a:hover,
nav a:focus-visible {
  transform: translateY(-6px) scale(1.04);
  color: #ffffff;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 16px 48px rgba(212, 175, 55, 0.15),
    0 8px 24px rgba(230, 62, 109, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  outline: none;
}

nav a:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}

nav a.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.25);
  color: #ffffff;
}

/* === Table des matières Ultra-interactive === */
.table-of-contents {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin: var(--spacing-sm) 0;
  transition: all var(--transition-default);
  border-radius: var(--border-radius-sm);
  animation: slideInFromLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--animation-order, 0) * 0.05s);
}

.table-of-contents li:hover {
  background: var(--glass-bg-hover);
  transform: translateX(var(--spacing-xs));
}

.table-of-contents a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--font-size-large);
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-default);
  position: relative;
  overflow: hidden;
}

.table-of-contents a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all var(--transition-default);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.table-of-contents a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-default);
}

.table-of-contents a:hover::before {
  opacity: 1;
  left: var(--spacing-sm);
}

.table-of-contents a:hover::after {
  width: 100%;
}

.table-of-contents a:hover {
  padding-left: calc(var(--spacing-md) + var(--spacing-lg));
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Footer Premium === */
footer {
  background: linear-gradient(160deg,
    rgba(10, 10, 15, 0.98) 0%,
    rgba(18, 18, 26, 0.95) 100%);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  text-align: center;
  padding: clamp(25px, 4vw, 35px);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  transition: all var(--transition-default);
  position: relative;
  margin-top: var(--spacing-2xl);
  animation: footerReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes footerReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.5;
  animation: glowPulse 3s ease-in-out infinite;
}

footer:hover {
  background: rgba(18, 18, 26, 1);
}

/* === Table responsive Premium === */
.table-container {
  overflow-x: auto;
  margin: var(--spacing-xl) 0;
  border-radius: var(--border-radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  
  /* Scroll fluide pour mobile */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

table {
  width: 100%;
  min-width: 600px; /* Évite le collapse sur petits écrans */
  border-collapse: collapse;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-primary);
}

th, td {
  padding: clamp(12px, 2vw, 18px) clamp(16px, 2.5vw, 22px);
  text-align: left;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  transition: all var(--transition-default);
}

thead th {
  background: rgba(212, 175, 55, 0.08);
  background: linear-gradient(135deg, #D4AF37 0%, #E63E6D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody tr {
  transition: all var(--transition-default);
  animation: tableRowFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--row-order, 0) * 0.05s);
}

@keyframes tableRowFadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

tbody tr:hover {
  background: var(--glass-bg-hover);
  transform: scale(1.01);
  box-shadow: inset 4px 0 0 rgba(212, 175, 55, 0.5);
}

.table-section-header {
  background: linear-gradient(135deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(230, 62, 109, 0.08) 100%);
  color: var(--text-primary);
  font-weight: bold;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

td:nth-child(2) {
  font-weight: 700;
  color: #fff;
}

td:nth-child(3) {
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.4vw, 0.98rem);
}

/* === Bouton Don Ultra-Premium === */
.donate-button {
  position: fixed;
  bottom: clamp(20px, 3vw, 28px);
  left: clamp(20px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 12px);
  padding: clamp(12px, 2vw, 16px) clamp(18px, 3vw, 26px);
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3),
              0 6px 20px rgba(230, 62, 109, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: donateFloat 3.5s ease-in-out infinite, gradientFlow 5s ease infinite;
  white-space: nowrap;
}

@keyframes donateFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.donate-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 18px 50px rgba(212, 175, 55, 0.4),
              0 8px 24px rgba(230, 62, 109, 0.3);
  animation: none;
}

.donate-button:active {
  transform: scale(0.96);
}

/* === Design responsive ULTRA-OPTIMISÉ === */

/* Écrans larges (Desktops) */
@media (min-width: 1441px) {
  :root {
    --font-size-base: 18px;
  }
  
  main {
    max-width: 1200px;
  }
}

/* Écrans moyens (Tablets landscape & small desktops) */
@media (max-width: 1440px) and (min-width: 1025px) {
  main {
    max-width: 900px;
    padding: clamp(45px, 5vw, 55px) clamp(35px, 4vw, 40px);
  }
}

/* Tablettes (Portrait & Landscape) */
@media (max-width: 1024px) {
  nav {
    padding: clamp(18px, 2.5vw, 24px) clamp(25px, 3.5vw, 35px);
    margin: clamp(30px, 5vw, 40px) auto;
  }
  
  nav ul {
    gap: clamp(8px, 1.5vw, 14px);
  }
  
  nav a {
    padding: clamp(12px, 2vw, 16px) clamp(18px, 2.5vw, 26px);
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  }

  main {
    padding: clamp(35px, 4.5vw, 50px) clamp(25px, 3.5vw, 35px);
    margin: clamp(35px, 5.5vw, 50px) auto;
  }

  h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  h2, h3 {
    font-size: clamp(1.6rem, 3.5vw, 1.9rem);
  }
  
  .features li,
  #tweaks details {
    animation-delay: 0s; /* Réduit les délais sur tablette */
  }
}

/* Smartphones (Landscape) */
@media (max-width: 768px) {
  nav {
    padding: clamp(16px, 2.5vw, 20px) clamp(20px, 3vw, 25px);
    border-radius: clamp(24px, 4vw, 32px);
    margin: clamp(20px, 4vw, 30px) auto;
  }
  
  nav ul {
    gap: clamp(6px, 1.2vw, 10px);
  }
  
  nav a {
    padding: clamp(10px, 1.8vw, 14px) clamp(16px, 2.5vw, 22px);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    min-height: clamp(40px, 5vw, 48px);
  }

  main {
    padding: clamp(25px, 4vw, 40px) clamp(18px, 3vw, 28px);
    margin: clamp(25px, 4.5vw, 40px) clamp(15px, 2vw, 20px);
    border-radius: clamp(16px, 2.5vw, 20px);
  }

  header {
    padding: clamp(50px, 8vw, 80px) clamp(20px, 3vw, 25px);
  }

  h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }

  h2, h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
  }

  .cta-button {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    padding: clamp(0.7rem, 1.5vw, 0.9rem) clamp(1.6rem, 3vw, 2rem);
  }

  .back-to-top {
    width: clamp(48px, 7vw, 56px);
    height: clamp(48px, 7vw, 56px);
    font-size: clamp(20px, 2.8vw, 24px);
  }
  
  table {
    min-width: 500px;
  }
  
  th, td {
    padding: clamp(10px, 1.8vw, 14px) clamp(12px, 2vw, 16px);
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  }
}

/* Smartphones (Portrait) */
@media (max-width: 480px) {
  nav {
    margin: clamp(18px, 4vw, 24px) clamp(12px, 2vw, 16px);
    padding: clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
    border-radius: clamp(20px, 4vw, 28px);
  }
  
  nav ul {
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 8px);
    width: 100%;
  }
  
  nav a {
    width: 100%;
    justify-content: center;
    padding: clamp(12px, 2.5vw, 16px) clamp(18px, 3vw, 24px);
    font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  }

  main {
    padding: clamp(20px, 4vw, 30px) clamp(16px, 3vw, 20px);
    margin: clamp(20px, 4vw, 30px) clamp(12px, 2vw, 16px);
    border-radius: clamp(14px, 2.5vw, 18px);
  }

  header {
    padding: clamp(40px, 8vw, 60px) clamp(16px, 3vw, 20px);
  }

  h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  h2, h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
  }

  .cta-button {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    padding: clamp(0.65rem, 1.5vw, 0.8rem) clamp(1.4rem, 2.8vw, 1.8rem);
  }

  .donate-button {
    padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 22px);
    font-size: clamp(12px, 1.8vw, 14px);
    gap: clamp(6px, 1.2vw, 10px);
  }

  .back-to-top {
    width: clamp(44px, 7vw, 52px);
    height: clamp(44px, 7vw, 52px);
    font-size: clamp(18px, 2.5vw, 22px);
  }

  #tweaks summary {
    padding: clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  }

  #tweaks details p {
    padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 20px) clamp(18px, 3vw, 22px);
  }

  .features li {
    padding: clamp(12px, 2.5vw, 16px);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  }

  .testimonial {
    padding: clamp(16px, 3vw, 22px);
  }
  
  table {
    min-width: 400px;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  :root {
    --font-size-base: 14px;
  }

  h1 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  h2, h3 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }

  p {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  nav a {
    padding: clamp(10px, 3vw, 14px) clamp(16px, 4vw, 20px);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
  }

  .donate-button {
    padding: clamp(8px, 2.5vw, 12px) clamp(14px, 3.5vw, 18px);
    font-size: clamp(11px, 2vw, 13px);
  }
}

/* Mode paysage spécial pour mobiles */
@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: clamp(30px, 6vw, 50px) var(--spacing-md);
  }
  
  main {
    margin: clamp(20px, 3vw, 30px) auto;
    padding: clamp(20px, 3vw, 35px) var(--spacing-lg);
  }
  
  nav {
    padding: clamp(12px, 2vw, 18px) clamp(20px, 3vw, 30px);
  }
  
  .back-to-top,
  .donate-button {
    transform: scale(0.85);
  }
}

/* === Effets de particules flottantes === */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* === Animations de scroll progressif === */
@media (prefers-reduced-motion: no-preference) {
  section, article {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

/* Désactiver les animations complexes si préférence réduite */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  body::before,
  body::after,
  nav::before,
  nav::after,
  header::before {
    animation: none !important;
  }
}

/* === Focus visible pour accessibilité === */
*:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Sélection de texte personnalisée === */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
  text-shadow: none;
}

::-moz-selection {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
  text-shadow: none;
}

/* === Scrollbar personnalisée === */
::-webkit-scrollbar {
  width: clamp(8px, 1.5vw, 12px);
  height: clamp(8px, 1.5vw, 12px);
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    rgba(212, 175, 55, 0.6) 0%, 
    rgba(230, 62, 109, 0.5) 100%);
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
  transition: all var(--transition-default);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, 
    rgba(212, 175, 55, 0.8) 0%, 
    rgba(230, 62, 109, 0.7) 100%);
}

/* Scrollbar pour Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.5) var(--bg-secondary);
}

/* === Optimisations pour écrans tactiles === */
@media (hover: none) and (pointer: coarse) {
  /* Augmenter les zones de clic sur mobile */
  nav a,
  .cta-button,
  .back-to-top,
  .donate-button,
  #tweaks summary {
    min-height: 44px; /* Taille minimum recommandée pour tactile */
    min-width: 44px;
  }
  
  /* Réduire les animations coûteuses */
  body::before,
  body::after,
  nav::before,
  nav::after {
    animation-duration: 40s; /* Plus lent pour économiser la batterie */
  }
  
  /* Améliorer la réactivité au toucher */
  button,
  a,
  summary {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    touch-action: manipulation;
  }
}

/* === Support pour notch iPhone === */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  header,
  footer {
    padding-left: max(var(--spacing-lg), env(safe-area-inset-left));
    padding-right: max(var(--spacing-lg), env(safe-area-inset-right));
  }
  
  .donate-button {
    left: max(clamp(20px, 3vw, 28px), env(safe-area-inset-left));
    bottom: max(clamp(20px, 3vw, 28px), env(safe-area-inset-bottom));
  }
  
  .back-to-top {
    right: max(clamp(20px, 3vw, 30px), env(safe-area-inset-right));
    bottom: max(clamp(20px, 3vw, 30px), env(safe-area-inset-bottom));
  }
}

/* === Mode sombre amélioré === */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #FAFAFA;
    --text-secondary: #E8E8E8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
  }
}

/* === Mode clair (optionnel) === */
@media (prefers-color-scheme: light) {
  :root {
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6A6A6A;
    
    --bg-primary: #FAFAFA;
    --bg-secondary: #F0F0F0;
    --bg-tertiary: #E8E8E8;
    
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(212, 175, 55, 0.2);
  }
  
  body {
    background: linear-gradient(160deg, 
      #FAFAFA 0%, 
      #F5F5F5 35%, 
      #F0F0F0 65%,
      #EBEBEB 100%);
  }
  
  main,
  nav,
  header,
  footer {
    border-color: rgba(0, 0, 0, 0.1);
  }
}

/* === Optimisations de performance === */
@media (prefers-reduced-data: reduce) {
  /* Désactiver les animations de fond gourmandes */
  body::before,
  body::after,
  nav::before,
  nav::after,
  header::before {
    display: none;
  }
  
  /* Réduire les effets de flou */
  * {
    backdrop-filter: none !important;
  }
}

/* === Impression === */
@media print {
  body {
    background: white;
    color: black;
  }
  
  header,
  footer,
  nav,
  .back-to-top,
  .donate-button {
    display: none;
  }
  
  main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  
  h1, h2, h3 {
    color: black;
    page-break-after: avoid;
  }
  
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* === Conteneurs flexibles universels === */
.container {
  width: 100%;
  max-width: min(1400px, 95vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* === Grille responsive === */
.grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* === Utilitaires de spacing responsive === */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* === Cards premium === */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-smooth);
  animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(212, 175, 55, 0.3);
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: clamp(4px, 0.8vw, 6px) clamp(10px, 1.5vw, 14px);
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-weight: 600;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--border-radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* === Dividers premium === */
.divider {
  height: 2px;
  background: var(--accent-gradient);
  margin: var(--spacing-xl) 0;
  border-radius: 2px;
  opacity: 0.3;
  animation: dividerExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dividerExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 0.3;
  }
}

/* === Loading state === */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(212, 175, 55, 0.2),
    transparent);
  animation: shimmer 2s infinite;
}

/* === Skeleton loader === */
.skeleton {
  background: linear-gradient(90deg,
    var(--glass-bg) 25%,
    var(--glass-bg-hover) 50%,
    var(--glass-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-heading {
  height: 2em;
  margin-bottom: 1em;
  width: 60%;
}

.skeleton-button {
  height: 3em;
  width: 150px;
}

/* === Tooltips === */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: var(--font-size-small);
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-default);
  z-index: 1000;
}

[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

/* === Alerts === */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  border-left: 4px solid;
  margin: var(--spacing-lg) 0;
  animation: slideInFromLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.alert-info {
  background: rgba(9, 132, 227, 0.1);
  border-color: var(--primary-blue);
  color: var(--text-primary);
}

.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: #34D399;
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: #FBBF24;
  color: var(--text-primary);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: var(--text-primary);
}

/* === Accordéon générique === */
.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all var(--transition-default);
}

.accordion-header {
  cursor: pointer;
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all var(--transition-default);
}

.accordion-header:hover {
  background: var(--glass-bg-hover);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: var(--spacing-md) var(--spacing-lg);
}

/* === Buttons variants === */
.btn-secondary {
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.5);
  color: var(--text-primary);
  padding: clamp(0.7rem, 1.8vw, 0.9rem) clamp(1.8rem, 3.5vw, 2.4rem);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-default);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: clamp(0.7rem, 1.8vw, 0.9rem) clamp(1.8rem, 3.5vw, 2.4rem);
  cursor: pointer;
  transition: all var(--transition-default);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}

/* === Animations d'entrée pour les sections === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Gestion des images haute résolution === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* === Support du mode contraste élevé === */
@media (prefers-contrast: high) {
  :root {
    --glass-border: rgba(212, 175, 55, 0.5);
  }
  
  nav a,
  .cta-button,
  button {
    border-width: 2px;
  }
}

/* === Support orientation === */
@media (orientation: portrait) {
  .landscape-only {
    display: none;
  }
}

@media (orientation: landscape) {
  .portrait-only {
    display: none;
  }
}

/* === Classes utilitaires finales === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-max { z-index: 9999; }

/* === Fin du CSS Premium Ultra-Optimisé === */

/* === Raffinements Premium Additionnels === */
body {
  letter-spacing: 0.01em;
}

a {
  transition: color var(--transition-default), background var(--transition-default), transform var(--transition-default);
}

@media (max-width: 600px) {
  main {
    box-shadow: none;
  }
}

/* ========================================================================== */
/*  ███ SECTION PREMIUM FINALE – ULTRA HIGH END UI DESIGN ███ */
/* ========================================================================== */

/* ---- Layout global section ---- */
.section-block {
  padding: 90px 25px;
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
  position: relative;

  /* Glow radial subtil */
  background: radial-gradient(
    circle at top,
    rgba(140, 90, 255, 0.06),
    transparent 65%
  );
}

/* ---- TITRE MASTERPIECE ---- */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #ffffff;
  margin-bottom: 18px;
  display: inline-block;
  text-transform: none;

  /* micro glow text */
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 14px auto 0;

  /* gradient premium */
  background: linear-gradient(90deg, #8e5cff, #00e7ff);
  border-radius: 8px;

  /* vibration légère */
  box-shadow: 0 0 16px #8e5cffaa, 0 0 20px #00e7ff55;
}

/* ---- DESCRIPTION LUXURY ---- */
.section-description {
  font-size: 1.25rem;
  color: #cfd0d4;
  margin: 0 auto 50px;
  line-height: 1.75;
  max-width: 750px;
  font-weight: 300;

  /* légère lum transversale */
  text-shadow: 0 0 12px rgba(255,255,255,0.07);
}

/* ========================================================================== */
/*  ███ ICONES SOCIALES ULTRA-PREMIUM ███ */
/* ========================================================================== */

.icon-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* ---- BLOC D’ICÔNE HYPERLUX ---- */
.icon-item {
  font-size: 2.1rem;
  width: 72px;
  height: 72px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #fff;
  cursor: pointer;

  border-radius: 20px;

  /* effet verre haute qualité */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);

  /* ombre subtile */
  box-shadow: 
    0 0 10px rgba(255,255,255,0.05),
    inset 0 0 10px rgba(255,255,255,0.04);

  /* animation fluide */
  transition: 
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    background 0.4s ease;
  position: relative;
}

/* ---- Hover haute qualité ---- */
.icon-item:hover {
  transform: translateY(-6px) scale(1.12);

  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);

  /* glow interne et externe */
  box-shadow: 
    0 0 20px rgba(255,255,255,0.15),
    0 0 35px rgba(255,255,255,0.18),
    inset 0 0 15px rgba(255,255,255,0.20);
}

/* ---- Effet respirant (breathing glow) ---- */
.icon-item::before {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: inherit;
  top: -5%;
  left: -5%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.12),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.icon-item:hover::before {
  opacity: 1;
}

/* ---- Option ronde ---- */
.icon-circle {
  border-radius: 50%;
}

/* ========================================================================== */
/*  ███ GLOW PAR PLATEFORME (version premium, contrôlée, non flashy) ███ */
/* ========================================================================== */

.icon-discord:hover {
  color: #5865F2;
  box-shadow:
    0 0 25px #5865f2c7,
    0 0 45px #5865F266,
    inset 0 0 18px #5865F244;
}

.icon-facebook:hover {
  color: #1877F2;
  box-shadow:
    0 0 25px #1877f2b4,
    0 0 45px #1877F244,
    inset 0 0 18px #1877F233;
}

.icon-x:hover {
  color: #ffffff;
  box-shadow:
    0 0 25px #ffffffaa,
    0 0 45px #ffffff44,
    inset 0 0 18px #ffffff33;
}

.icon-youtube:hover {
  color: #FF0000;
  box-shadow:
    0 0 25px #ff0000bb,
    0 0 50px #ff00005a,
    inset 0 0 18px #ff000044;
}

.icon-tiktok:hover {
  color: #25F4EE;
  box-shadow:
    0 0 30px #25F4EE88,
    0 0 45px #FE2C5588,
    inset 0 0 20px #25F4EE66;
}

/* ========================================================================== */
/* ACCESSIBILITÉ */
/* ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
