:root {
    --primary: #8b45ff;
    --secondary: #ff6b6b;
    --neon-glow: rgba(139, 69, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-strong-bg: rgba(255, 255, 255, 0.08);
    --glass-strong-border: rgba(255, 255, 255, 0.15);
}

:where([class^="ri-"])::before { content: "\f3c2"; }

/* Animation de chargement du site */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.fade-out {
    opacity: 0;
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 69, 255, 0.2);
}

.loading-spinner::before {
    background: radial-gradient(circle, rgba(139, 69, 255, 0.1), transparent 60%);
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner::after {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(139, 69, 255, 0.5);
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes levitate {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.levitate {
    animation: levitate 3s ease-in-out infinite;
}

.larger-logo {
    transform: scale(1.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Animations de contenu */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

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

/* Classe pour les éléments animés */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-scale {
    opacity: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in {
    opacity: 0;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatPalm {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-20px); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('./img/Grand Theft Auto VI Trailer 1_035.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    color: white;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(139, 69, 255, 0.1));
    z-index: 0;
    pointer-events: none;
}

.palm-tree {
    position: fixed;
    width: 1000px;
    height: 1200px;
    opacity: 1;
    animation: floatPalm 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.palm-tree-left {
    left: -400px;
    top: -250px;
    transform: scaleX(-1);
}

.palm-tree-right {
    right: -400px;
    top: -250px;
    transform: scaleX(-1);
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.glassmorphism-strong {
    background: var(--glass-strong-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-strong-border);
    transition: all 0.3s ease;
}

.neon-glow {
    box-shadow: 0 0 20px var(--neon-glow);
}

.neon-text {
    text-shadow: 0 0 10px var(--neon-glow);
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(139, 69, 255, 0.6);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.dropdown-custom {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.eth-icon {
    width: 1rem;
    height: 1rem;
    background: linear-gradient(45deg, #627eea, var(--primary));
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.25rem;
    box-shadow: 0 0 10px rgba(98, 126, 234, 0.4);
}

.tier-badge {
    background: linear-gradient(45deg, var(--secondary), #ffd93d);
    color: #000;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--neon-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.btn-primary:hover::before {
    transform: scale(1);
}

@keyframes headerFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

header {
    left: 50% !important; /* Force le centrage même pendant le chargement */
    transform: translateX(-50%);
    opacity: 0; /* Commence invisible */
    animation: headerFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Animation plus douce */
}

main {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 2rem;
}

.filter-button {
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.duration-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.duration-btn:hover {
    background: var(--glass-strong-bg);
    border-color: var(--glass-strong-border);
}

.duration-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--neon-glow);
}

.price-amount {
    transition: all 0.3s ease;
}

@keyframes badgeGlow {
    0%, 100% { 
        box-shadow: 0 0 15px var(--neon-glow);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 25px var(--neon-glow);
        transform: translateX(-50%) scale(1.05);
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.popular-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.popular-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.3;
    z-index: -1;
}

/* Styles pour la page création */
.project-card, .exclusive-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover, .exclusive-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.2);
}

.project-card::before, .exclusive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.project-card:hover::before, .exclusive-card:hover::before {
    left: 100%;
}

.exclusive-card .unlock-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.exclusive-card:hover .unlock-btn {
    opacity: 1;
    transform: translateY(0);
}

.exclusive-card img {
    transition: filter 0.3s ease;
}

.exclusive-card:hover img {
    filter: blur(5px);
}

/* Styles pour le menu mobile */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#mobileMenu.hidden {
    opacity: 0;
    visibility: hidden;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#mobileMenu .flex-col > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu:not(.hidden) .flex-col > * {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu:not(.hidden) .flex-col > *:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu:not(.hidden) .flex-col > *:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu:not(.hidden) .flex-col > *:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu:not(.hidden) .flex-col > *:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu:not(.hidden) .flex-col > *:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu:not(.hidden) .flex-col > *:nth-child(6) { transition-delay: 0.35s; }

/* Styles pour le contenu premium débloqué */
.exclusive-card.premium-unlocked {
    cursor: pointer;
    transition: all 0.3s ease;
}

.exclusive-card.premium-unlocked:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 69, 255, 0.3);
}

.exclusive-card.premium-unlocked .premium-blur {
    filter: blur(0);
    transition: filter 0.5s ease;
}

.exclusive-card.premium-unlocked .premium-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.exclusive-card.premium-unlocked::before {
    background: linear-gradient(135deg, rgba(139, 69, 255, 0.2), rgba(255, 107, 107, 0.2));
    border: 1px solid rgba(139, 69, 255, 0.3);
}

.exclusive-card.premium-unlocked::after {
    content: '✨ PREMIUM';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #8b45ff, #ff6b6b);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 69, 255, 0.3);
}

#projectModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#projectModal iframe {
    background: rgba(0, 0, 0, 0.2);
}

/* Nouveau style pour le slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    background: transparent;
    cursor: pointer;
}

/* Style de la piste (track) */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

/* Ajouter des marques pour les steps de 10 secondes */
input[type="range"]::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 29px,
        rgba(255, 255, 255, 0.3) 29px,
        rgba(255, 255, 255, 0.3) 30px
    );
    pointer-events: none;
}

/* Style du curseur (thumb) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    margin-top: -7px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2),
                0 0 0 5px rgba(139, 69, 255, 0.1);
    transition: all 0.15s ease;
    cursor: grab;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2),
                0 0 0 5px rgba(139, 69, 255, 0.1);
    transition: all 0.15s ease;
    cursor: grab;
}

/* Effets au survol et au focus */
input[type="range"]:hover::-webkit-slider-thumb {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3),
                0 0 0 7px rgba(139, 69, 255, 0.2);
    transform: scale(1.1);
}

input[type="range"]:hover::-moz-range-thumb {
    box-shadow: 0 2px 5px rgba(0,0,0,0.3),
                0 0 0 7px rgba(139, 69, 255, 0.2);
    transform: scale(1.1);
}

/* Style actif (pendant le drag) */
input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2),
                0 0 0 3px rgba(139, 69, 255, 0.3);
}

input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2),
                0 0 0 3px rgba(139, 69, 255, 0.3);
}

/* Désactiver le focus outline par défaut */
input[type="range"]:focus {
    outline: none;
}

/* Style spécial pour le focus (accessibilité) */
input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2),
                0 0 0 7px rgba(139, 69, 255, 0.3);
}

input[type="range"]:focus::-moz-range-thumb {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2),
                0 0 0 7px rgba(139, 69, 255, 0.3);
}

/* Styles personnalisés pour le select */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
    color: white;
    font-weight: 500;
}

select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--neon-glow);
}

select option {
    background-color: #1a1a1a;
    color: white;
    padding: 12px;
    font-weight: 500;
}

select:hover {
    background-color: var(--glass-strong-bg);
    border-color: var(--glass-strong-border);
}

/* Animation pour le select */
@keyframes selectGlow {
    0% {
        border-color: var(--glass-border);
        box-shadow: none;
    }
    50% {
        border-color: var(--primary);
        box-shadow: 0 0 10px var(--neon-glow);
    }
    100% {
        border-color: var(--glass-border);
        box-shadow: none;
    }
}

select:focus {
    animation: selectGlow 2s infinite;
}

@media (max-width: 768px) {
    .palm-tree {
        display: none;
    }
    
    .product-card, .project-card, .exclusive-card {
        margin-bottom: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    #projectModal .modal-content {
        padding: 1rem;
    }
} 