@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    /* Couleurs OR/NOIR/BLANC par défaut */
    --primary: #bbaa4d;
    --primary-dark: #7c6a32;
    --secondary: #d4af37;
    --accent: #f0e68c;
    
    --dark: #0f0f0f;
    --dark-light: #1a1a1a;
    --gray: #555555;
    --gray-light: #cbd5e1;
    --gray-lighter: #f8f8f8;
    --white: #ffffff;
    
    --gradient: linear-gradient(135deg, #bbaa4d 0%, #d4af37 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== THÈMES GLOBAUX DYNAMIQUES ===== */

/* THEME ALPINE - CYAN NEON */
body[data-active-theme="alpine"] {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #9333ea;
    --accent: #60a5fa;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #9333ea 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

/* THEME BLUESTONE - BLEU CORPORATE */
body[data-active-theme="bluestone"] {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --gradient: linear-gradient(135deg, #2563eb 0%, #647ac4 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

/* THEME HORIZON - VIOLET/ROSE */
body[data-active-theme="horizon"] {
    --primary: #a855f7;
    --primary-dark: #7e22ce;
    --secondary: #ec4899;
    --accent: #d8b4fe;
    --gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

/* THEME NOVA - VERT FRAIS */
body[data-active-theme="nova"] {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #34d399;
    --accent: #6ee7b7;
    --gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #064e3b 0%, #047857 100%);
}

/* THEME PURELINE - NOIR/BLANC */
body[data-active-theme="pureline"] {
    --primary: #171717;
    --primary-dark: #0a0a0a;
    --secondary: #404040;
    --accent: #737373;
    --gradient: linear-gradient(135deg, #171717 0%, #434343 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
}

/* ⭐ THEME QUATORMINE - ROUGE GLITCH CYBERPUNK */
body[data-active-theme="QuatorMine"] {
    --primary: #ff0000;
    --primary-dark: #8b0000;
    --secondary: #dc143c;
    --accent: #ff2400;
    --gradient: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    --gradient-dark: linear-gradient(135deg, #0f0000 0%, #1a0000 100%);
}

/* ⭐ THEME ROCKETSPACE - BLEU SPATIAL */
body[data-active-theme="RocketSpace"] {
    --primary: #0a84ff;
    --primary-dark: #0066cc;
    --secondary: #1e90ff;
    --accent: #4db8ff;
    --gradient: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #0a0a1a 100%);
}

/* ⭐ THEME MAJESTIC - APPLE MINIMALISTE */
body[data-active-theme="Majestic"] {
    --primary: #0071e3;
    --primary-dark: #0077ed;
    --secondary: #86868b;
    --accent: #d2d2d7;
    --gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    --gradient-dark: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
}

/* ⭐ THEME NEONCHAOS - ROSE NÉON */
body[data-active-theme="NeonChaos"] {
    --primary: #ff006e;
    --primary-dark: #c71585;
    --secondary: #ff1493;
    --accent: #ff69b4;
    --gradient: linear-gradient(135deg, #ff006e 0%, #c71585 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a0a0f 100%);
}

/* ⭐ THEME DIMENSION3D - ORANGE SUPREME */
body[data-active-theme="Dimension3D"] {
    --primary: #ff6b00;
    --primary-dark: #cc5500;
    --secondary: #ff8534;
    --accent: #ff9e5c;
    --gradient: linear-gradient(135deg, #ff6b00 0%, #cc5500 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-dark);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--primary);
    opacity: 0.9;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .hero-badge {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

body[data-active-theme="horizon"] .hero-badge {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

body[data-active-theme="QuatorMine"] .hero-badge {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    animation: glitchBadge 3s infinite;
}

body[data-active-theme="RocketSpace"] .hero-badge {
    box-shadow: 0 0 30px rgba(10, 132, 255, 0.6);
}

body[data-active-theme="Majestic"] .hero-badge {
    box-shadow: 0 0 30px rgba(0, 113, 227, 0.5);
    background: var(--primary);
    color: var(--white);
}

body[data-active-theme="NeonChaos"] .hero-badge {
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.7);
    animation: glitchBadge 3s infinite;
}

body[data-active-theme="Dimension3D"] .hero-badge {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6);
    background: var(--primary);
    color: var(--black);
}

@keyframes glitchBadge {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .hero h1 {
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

body[data-active-theme="QuatorMine"] .hero h1 {
    text-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
    animation: textGlitch 4s infinite;
}

body[data-active-theme="RocketSpace"] .hero h1 {
    text-shadow: 0 0 40px rgba(10, 132, 255, 0.5);
}

body[data-active-theme="Majestic"] .hero h1 {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

body[data-active-theme="NeonChaos"] .hero h1 {
    text-shadow: 0 0 40px rgba(255, 0, 110, 0.6), 0 0 80px rgba(255, 0, 110, 0.4);
    animation: textGlitch 4s infinite;
}

body[data-active-theme="Dimension3D"] .hero h1 {
    text-shadow: 0 0 40px rgba(255, 107, 0, 0.5);
    color: var(--white);
}

@keyframes textGlitch {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

.subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .stat-value {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

body[data-active-theme="QuatorMine"] .stat-value {
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
}

body[data-active-theme="RocketSpace"] .stat-value {
    filter: drop-shadow(0 0 20px rgba(10, 132, 255, 0.5));
}

body[data-active-theme="Majestic"] .stat-value {
    filter: drop-shadow(0 0 20px rgba(0, 113, 227, 0.5));
}

body[data-active-theme="NeonChaos"] .stat-value {
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.7));
}

body[data-active-theme="Dimension3D"] .stat-value {
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.6));
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===== PRICING INFO SECTION ===== */
.pricing-info {
    padding: 80px 0;
    background: var(--gray-lighter);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .pricing-info {
    background: #f0f9ff;
}

body[data-active-theme="bluestone"] .pricing-info {
    background: #eff6ff;
}

body[data-active-theme="horizon"] .pricing-info {
    background: #faf5ff;
}

body[data-active-theme="nova"] .pricing-info {
    background: #f0fdf4;
}

body[data-active-theme="QuatorMine"] .pricing-info {
    background: #1a0000;
}

body[data-active-theme="RocketSpace"] .pricing-info {
    background: #0a0a1a;
}

body[data-active-theme="Majestic"] .pricing-info {
    background: #f5f5f7;
}

body[data-active-theme="NeonChaos"] .pricing-info {
    background: #1a0a0f;
}

body[data-active-theme="Dimension3D"] .pricing-info {
    background: #1a1a1a;
}

.pricing-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-light);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .pricing-card {
    border: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

body[data-active-theme="horizon"] .pricing-card {
    border: 2px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

body[data-active-theme="QuatorMine"] .pricing-card {
    background: rgba(26, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
}

body[data-active-theme="QuatorMine"] .pricing-card h3,
body[data-active-theme="QuatorMine"] .features-list li {
    color: #ffffff;
}

body[data-active-theme="RocketSpace"] .pricing-card {
    background: rgba(10, 10, 26, 0.5);
    border: 2px solid rgba(10, 132, 255, 0.3);
    box-shadow: 0 20px 40px rgba(10, 132, 255, 0.2);
}

body[data-active-theme="RocketSpace"] .pricing-card h3,
body[data-active-theme="RocketSpace"] .features-list li {
    color: #ffffff;
}

body[data-active-theme="Majestic"] .pricing-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body[data-active-theme="Majestic"] .pricing-card h3,
body[data-active-theme="Majestic"] .features-list li {
    color: #1d1d1f;
}

body[data-active-theme="NeonChaos"] .pricing-card {
    background: rgba(26, 10, 15, 0.6);
    border: 2px solid rgba(255, 0, 110, 0.3);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.3);
}

body[data-active-theme="NeonChaos"] .pricing-card h3,
body[data-active-theme="NeonChaos"] .features-list li {
    color: #ffffff;
}

body[data-active-theme="Dimension3D"] .pricing-card {
    background: rgba(26, 26, 26, 0.6);
    border: 3px solid rgba(255, 107, 0, 0.4);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.3);
}

body[data-active-theme="Dimension3D"] .pricing-card h3,
body[data-active-theme="Dimension3D"] .features-list li {
    color: #ffffff;
}

.pricing-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.pricing-card h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-tag {
    margin-bottom: 40px;
}

.price {
    display: block;
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-period {
    display: block;
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

body[data-active-theme="QuatorMine"] .price-period,
body[data-active-theme="RocketSpace"] .price-period {
    color: rgba(255, 255, 255, 0.7);
}

body[data-active-theme="Majestic"] .price-period {
    color: var(--gray);
}

body[data-active-theme="NeonChaos"] .price-period {
    color: rgba(255, 255, 255, 0.7);
}

body[data-active-theme="Dimension3D"] .price-period {
    color: rgba(255, 255, 255, 0.7);
}

.features-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.features-list li {
    font-size: 16px;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-note {
    background: var(--primary);
    opacity: 0.1;
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 16px 24px;
    color: black;
    font-size: 14px;
    font-weight: 600;
    margin-top: 32px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TEMPLATES SHOWCASE ===== */
.templates-showcase {
    padding: 80px 0 100px;
    background: white;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 24px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card {
    min-width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-light);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Headers spécifiques par template */
.template-card[data-theme="alpine"] .template-header {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-bottom: 2px solid #00d4ff;
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.2);
}

.template-card[data-theme="alpine"] .template-title-section h3 {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.template-card[data-theme="alpine"] .template-tag {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.template-card[data-theme="alpine"] .price-badge {
    background: linear-gradient(135deg, #00d4ff 0%, #9333ea 100%);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.5);
}

.template-card[data-theme="bluestone"] .template-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom: 2px solid #2563eb;
}

.template-card[data-theme="bluestone"] .template-title-section h3 {
    color: #1e40af;
}

.template-card[data-theme="bluestone"] .template-tag {
    background: rgba(37, 99, 235, 0.12);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.template-card[data-theme="bluestone"] .price-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 5px 25px rgba(37, 99, 235, 0.3);
}

.template-card[data-theme="horizon"] .template-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-bottom: 2px solid #a855f7;
    box-shadow: 0 5px 30px rgba(168, 85, 247, 0.2);
}

.template-card[data-theme="horizon"] .template-title-section h3 {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.template-card[data-theme="horizon"] .template-tag {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.template-card[data-theme="horizon"] .price-badge {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    box-shadow: 0 5px 25px rgba(168, 85, 247, 0.5);
}

.template-card[data-theme="nova"] .template-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 2px solid #10b981;
}

.template-card[data-theme="nova"] .template-title-section h3 {
    color: #047857;
}

.template-card[data-theme="nova"] .template-tag {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.template-card[data-theme="nova"] .price-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.3);
}

.template-card[data-theme="pureline"] .template-header {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-bottom: 2px solid #171717;
}

.template-card[data-theme="pureline"] .template-title-section h3 {
    color: #0a0a0a;
}

.template-card[data-theme="pureline"] .template-tag {
    background: rgba(23, 23, 23, 0.08);
    color: #171717;
    border: 1px solid rgba(23, 23, 23, 0.2);
}

.template-card[data-theme="pureline"] .price-badge {
    background: linear-gradient(135deg, #171717 0%, #0a0a0a 100%);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* ⭐ THEME QUATORMINE CARD - ROUGE GLITCH */
.template-card[data-theme="QuatorMine"] .template-header {
    background: linear-gradient(135deg, #0f0000 0%, #1a0000 100%);
    border-bottom: 2px solid #ff0000;
    box-shadow: 0 5px 30px rgba(255, 0, 0, 0.3);
    animation: headerGlitch 3s infinite;
}

@keyframes headerGlitch {
    0%, 100% { border-bottom-color: #ff0000; }
    50% { border-bottom-color: #dc143c; }
}

.template-card[data-theme="QuatorMine"] .template-title-section h3 {
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    animation: titleGlitch 2s infinite;
}

@keyframes titleGlitch {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
    50% { text-shadow: 2px 2px 20px rgba(255, 0, 0, 1), -2px -2px 20px rgba(220, 20, 60, 0.8); }
}

.template-card[data-theme="QuatorMine"] .template-tag {
    background: rgba(255, 0, 0, 0.15);
    color: #ff2400;
    border: 1px solid rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.template-card[data-theme="QuatorMine"] .price-badge {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    box-shadow: 0 5px 25px rgba(255, 0, 0, 0.6);
}

/* ⭐ THEME ROCKETSPACE CARD - BLEU SPATIAL */
.template-card[data-theme="RocketSpace"] .template-header {
    background: linear-gradient(135deg, #000000 0%, #0a0a1a 100%);
    border-bottom: 2px solid #0a84ff;
    box-shadow: 0 5px 30px rgba(10, 132, 255, 0.3);
}

.template-card[data-theme="RocketSpace"] .template-title-section h3 {
    color: #0a84ff;
    text-shadow: 0 0 20px rgba(10, 132, 255, 0.8);
}

.template-card[data-theme="RocketSpace"] .template-tag {
    background: rgba(10, 132, 255, 0.15);
    color: #4db8ff;
    border: 1px solid rgba(10, 132, 255, 0.4);
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.3);
}

.template-card[data-theme="RocketSpace"] .price-badge {
    background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%);
    box-shadow: 0 5px 25px rgba(10, 132, 255, 0.6);
}

/* ⭐ THEME MAJESTIC CARD - MINIMALISTE APPLE */
.template-card[data-theme="Majestic"] .template-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.template-card[data-theme="Majestic"] .template-title-section h3 {
    color: #1d1d1f;
    text-shadow: none;
}

.template-card[data-theme="Majestic"] .template-tag {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.template-card[data-theme="Majestic"] .price-badge {
    background: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ⭐ THEME NEONCHAOS CARD - ROSE NÉON */
.template-card[data-theme="NeonChaos"] .template-header {
    background: linear-gradient(135deg, #000000 0%, #1a0a0f 100%);
    border-bottom: 2px solid #ff006e;
    box-shadow: 0 5px 30px rgba(255, 0, 110, 0.4);
}

.template-card[data-theme="NeonChaos"] .template-title-section h3 {
    color: #ff006e;
    text-shadow: 0 0 20px rgba(255, 0, 110, 0.8);
}

.template-card[data-theme="NeonChaos"] .template-tag {
    background: rgba(255, 0, 110, 0.15);
    color: #ff69b4;
    border: 1px solid rgba(255, 0, 110, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.3);
}

.template-card[data-theme="NeonChaos"] .price-badge {
    background: linear-gradient(135deg, #ff006e 0%, #c71585 100%);
    box-shadow: 0 5px 25px rgba(255, 0, 110, 0.6);
}

/* ⭐ THEME DIMENSION3D CARD - ORANGE SUPREME */
.template-card[data-theme="Dimension3D"] .template-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-bottom: 3px solid #ff6b00;
    box-shadow: 0 5px 30px rgba(255, 107, 0, 0.3);
}

.template-card[data-theme="Dimension3D"] .template-title-section h3 {
    color: #ff6b00;
    text-shadow: none;
    font-weight: 900;
    text-transform: uppercase;
}

.template-card[data-theme="Dimension3D"] .template-tag {
    background: rgba(255, 107, 0, 0.15);
    color: #ff8534;
    border: 1px solid rgba(255, 107, 0, 0.4);
}

.template-card[data-theme="Dimension3D"] .price-badge {
    background: linear-gradient(135deg, #ff6b00 0%, #cc5500 100%);
    box-shadow: 0 5px 25px rgba(255, 107, 0, 0.5);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 32px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-title-section h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-badge {
    padding: 12px 24px;
    color: white;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-preview {
    position: relative;
    height: 600px;
    background: var(--gray-lighter);
    overflow: hidden;
}

.template-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.template-card:hover .template-preview iframe {
    transform: scale(1.02);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .preview-overlay {
    opacity: 1;
}

.btn-preview-large {
    padding: 16px 32px;
    background: white;
    color: var(--dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.btn-preview-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.template-info {
    padding: 32px;
}

.template-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.template-features {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.feature-chip {
    padding: 8px 16px;
    background: var(--gray-lighter);
    color: var(--gray);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gray-light);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .feature-chip {
    background: rgba(0, 212, 255, 0.1);
    color: #0099cc;
    border-color: rgba(0, 212, 255, 0.3);
}

body[data-active-theme="horizon"] .feature-chip {
    background: rgba(168, 85, 247, 0.1);
    color: #7e22ce;
    border-color: rgba(168, 85, 247, 0.3);
}

body[data-active-theme="QuatorMine"] .feature-chip {
    background: rgba(255, 0, 0, 0.1);
    color: #dc143c;
    border-color: rgba(255, 0, 0, 0.3);
}

body[data-active-theme="RocketSpace"] .feature-chip {
    background: rgba(10, 132, 255, 0.1);
    color: #0066cc;
    border-color: rgba(10, 132, 255, 0.3);
}

body[data-active-theme="Majestic"] .feature-chip {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-active-theme="NeonChaos"] .feature-chip {
    background: rgba(255, 0, 110, 0.1);
    color: #ff1493;
    border-color: rgba(255, 0, 110, 0.3);
}

body[data-active-theme="Dimension3D"] .feature-chip {
    background: rgba(255, 107, 0, 0.1);
    color: #ff8534;
    border-color: rgba(255, 107, 0, 0.3);
}

.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--primary);
}

body[data-active-theme="alpine"] .btn-order {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

body[data-active-theme="alpine"] .btn-order:hover {
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6);
}

body[data-active-theme="QuatorMine"] .btn-order {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

body[data-active-theme="QuatorMine"] .btn-order:hover {
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.7);
}

body[data-active-theme="RocketSpace"] .btn-order {
    box-shadow: 0 8px 25px rgba(10, 132, 255, 0.5);
}

body[data-active-theme="RocketSpace"] .btn-order:hover {
    box-shadow: 0 12px 35px rgba(10, 132, 255, 0.7);
}

body[data-active-theme="Majestic"] .btn-order {
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

body[data-active-theme="Majestic"] .btn-order:hover {
    box-shadow: 0 12px 35px rgba(0, 113, 227, 0.6);
}

body[data-active-theme="NeonChaos"] .btn-order {
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.5);
}

body[data-active-theme="NeonChaos"] .btn-order:hover {
    box-shadow: 0 12px 35px rgba(255, 0, 110, 0.7);
}

body[data-active-theme="Dimension3D"] .btn-order {
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

body[data-active-theme="Dimension3D"] .btn-order:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.7);
}

/* ===== NAVIGATION BUTTONS ===== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    color: var(--primary);
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

body[data-active-theme="alpine"] .carousel-nav {
    border-color: #00d4ff;
    color: #00d4ff;
}

body[data-active-theme="alpine"] .carousel-nav:hover{
    background: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

body[data-active-theme="QuatorMine"] .carousel-nav {
    border-color: #ff0000;
    color: #ff0000;
}

body[data-active-theme="QuatorMine"] .carousel-nav:hover{
    background: #ff0000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

body[data-active-theme="RocketSpace"] .carousel-nav {
    border-color: #0a84ff;
    color: #0a84ff;
}

body[data-active-theme="RocketSpace"] .carousel-nav:hover{
    background: #0a84ff;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.6);
}

body[data-active-theme="Majestic"] .carousel-nav {
    border-color: #0071e3;
    color: #0071e3;
}

body[data-active-theme="Majestic"] .carousel-nav:hover{
    background: #0071e3;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.5);
}

body[data-active-theme="NeonChaos"] .carousel-nav {
    border-color: #ff006e;
    color: #ff006e;
}

body[data-active-theme="NeonChaos"] .carousel-nav:hover{
    background: #ff006e;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.6);
}

body[data-active-theme="Dimension3D"] .carousel-nav {
    border-color: #ff6b00;
    color: #ff6b00;
}

body[data-active-theme="Dimension3D"] .carousel-nav:hover{
    background: #ff6b00;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.6);
}

.carousel-nav.prev {
    left: -28px;
}

.carousel-nav.next {
    right: -28px;
}

/* ===== INDICATORS ===== */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: var(--gray-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: var(--gray);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-active-theme="alpine"] .indicator.active {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

body[data-active-theme="QuatorMine"] .indicator.active {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

body[data-active-theme="RocketSpace"] .indicator.active {
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.6);
}

body[data-active-theme="Majestic"] .indicator.active {
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.6);
}

body[data-active-theme="NeonChaos"] .indicator.active {
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.7);
}

body[data-active-theme="Dimension3D"] .indicator.active {
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
}

@media (max-width: 968px) {
    .hero h1 {
        font-size: 42px;
    }

    .subtitle {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .stat-value {
        font-size: 40px;
    }

    .pricing-card {
        padding: 32px;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .template-header {
        flex-direction: column;
        gap: 16px;
    }

    .template-preview {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .stat-value {
        font-size: 32px;
    }

    .pricing-card {
        padding: 24px;
    }

    .price {
        font-size: 48px;
    }

    .template-header {
        padding: 24px 24px 16px;
    }

    .template-title-section h3 {
        font-size: 24px;
    }

    .price-badge {
        font-size: 20px;
        padding: 10px 20px;
    }

    .template-preview {
        height: 300px;
    }

    .template-info {
        padding: 24px;
    }

    .carousel-nav {
        width: 48px;
        height: 48px;
    }

    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
}
/* Style du bouton retour */
.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-5px);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}
body[data-active-theme="Majestic"] .btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: #0071e3;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

body[data-active-theme="Majestic"] .btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 113, 227, 0.6);
}
/* Responsive mobile */
@media (max-width: 768px) {
    .back-button {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .back-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Position relative du header pour le bouton */
.hero {
    position: relative;
}