/**
 * ROYAL GOLD - Styles Premium de la Page d'Accueil
 * Design sophistiqué avec animations et effets visuels avancés
 */

/* =====================================================================
   NAVIGATION PREMIUM
   ===================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: var(--spacing-md) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: var(--transition-smooth);
}

.logo-section:hover {
    transform: scale(1.05);
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.platform-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 50%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: var(--text-primary);
    transition: var(--transition-smooth);
    font-weight: 600;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--primary-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

/* =====================================================================
   HERO SECTION PREMIUM
   ===================================================================== */

.hero {
    padding: 5rem var(--spacing-lg);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    animation: slideInLeft 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 90%;
    line-height: 1.6;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    animation: float-up 0.8s ease-out backwards;
}

.stat:nth-child(1) { animation-delay: 0.1s; }
.stat:nth-child(2) { animation-delay: 0.2s; }
.stat:nth-child(3) { animation-delay: 0.3s; }

.stat h3 {
    color: var(--primary-gold);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
}

.hero-visual .glass-card {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.card-icon {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
    animation: glow 2s ease-in-out infinite;
}

/* =====================================================================
   FEATURES SECTION
   ===================================================================== */

.features {
    padding: 5rem var(--spacing-lg);
    background: rgba(212, 175, 55, 0.02);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem !important;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =====================================================================
   PLANS SECTION
   ===================================================================== */

.plans {
    padding: 5rem var(--spacing-lg);
}

.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(212, 175, 55, 0.2);
}

.plan-card.vip {
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.plan-card.vip::after {
    content: 'POPULAIRE';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--primary-black);
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.plan-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.plan-header h3 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.plan-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.plan-free { background: rgba(108, 117, 125, 0.15); border-color: rgba(108, 117, 125, 0.3); }
.plan-standard { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); }
.plan-premium { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); }
.plan-vip { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.3); }

.plan-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plan-amount {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.plan-rate {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.plan-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
    flex: 1;
}

.plan-features li {
    color: var(--text-secondary);
    padding: var(--spacing-md) 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.plan-features li:hover {
    color: var(--text-primary);
    padding-left: var(--spacing-md);
}

.plan-features i {
    margin-right: var(--spacing-md);
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.plan-features i.fa-times {
    color: #ff6b6b;
}

.plan-card .btn {
    width: 100%;
    margin-top: auto;
}

/* =====================================================================
   CALCULATOR SECTION
   ===================================================================== */

.calculator {
    padding: 5rem var(--spacing-lg);
    background: rgba(212, 175, 55, 0.02);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.calculator-card {
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card input {
    margin-bottom: var(--spacing-lg);
}

.calculator-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.result-item span {
    color: var(--text-secondary);
}

.result-item strong {
    font-size: 1.25rem;
    color: var(--primary-gold);
}

/* =====================================================================
   TESTIMONIALS SECTION
   ===================================================================== */

.testimonials {
    padding: 5rem var(--spacing-lg);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-header h4 {
    margin: 0;
    color: var(--text-light);
}

.testimonial-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.testimonial-text {
    flex: 1;
    font-style: italic;
    color: var(--text-secondary);
}

.testimonial-rating {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

.testimonial-rating i {
    margin-right: var(--spacing-xs);
}

/* =====================================================================
   FINAL CTA
   ===================================================================== */

.final-cta {
    padding: 4rem var(--spacing-lg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.final-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.footer {
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 3rem var(--spacing-lg) 1rem;
    margin-top: 5rem;
}

.footer h4 {
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--spacing-sm);
}

.footer a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(212, 175, 55, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-links .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 2rem var(--spacing-lg);
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-visual {
        min-height: 300px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .logo {
        height: 30px;
    }

    .platform-name {
        font-size: 1rem;
    }
}

