/* Pricing Page Styles */
.pricing-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.9)),
                url('https://source.unsplash.com/random/1920x1080?technology') no-repeat center center;
    background-size: cover;
    margin-top: 76px;
}

.pricing-hero .main-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.pricing-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Effet de fond subtil */
.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03), transparent 70%);
    pointer-events: none;
}

/* Nouvelle approche pour le défilement automatique */

/* Supprimons l'animation précédente */
.pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    margin: 3rem auto;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
    justify-content: flex-start;
}

/* Masquer la barre de défilement */
.pricing-grid::-webkit-scrollbar {
    display: none;
}

/* Ajuster la largeur des cartes pour qu'elles soient toutes visibles */
.pricing-card {
    flex: 0 0 300px;
    background: rgba(18, 18, 18, 0.97);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
    transform-origin: center bottom;
    margin: 0 0.5rem;
}

/* Responsive pour montrer toutes les cartes */
@media (min-width: 1400px) {
    .pricing-grid {
        justify-content: center;
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1399px) {
    .pricing-section {
        overflow-x: hidden;
    }
    
    .pricing-grid {
        justify-content: flex-start;
        padding-bottom: 3rem;
    }
    
    /* Ajouter des indicateurs de défilement */
    .pricing-section::after {
        content: '→';
        position: absolute;
        right: 20px;
        bottom: 20px;
        color: var(--gold);
        font-size: 2rem;
        animation: bounce 1s infinite alternate;
        z-index: 10;
    }
    
    @keyframes bounce {
        from { transform: translateX(0); }
        to { transform: translateX(10px); }
    }
}

@media (max-width: 768px) {
    .pricing-section .container {
        padding: 0 1rem;
    }
    
    .pricing-grid {
        padding: 1.5rem 0.5rem 3rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-hero .main-title {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        flex: 0 0 280px;
        margin: 0 0.5rem;
    }
}

.pricing-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: rgba(18, 18, 18, 0.97);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
    transform-origin: center bottom;
}

.pricing-card.featured {
    border: 2px solid var(--gold);
    transform: scale(1.05);
    box-shadow: 0 15px 40px -10px rgba(255, 215, 0, 0.15);
    z-index: 2;
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.pricing-card.featured:hover .pricing-badge {
    transform: translateY(-3px) scale(1.05);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.3),
        transparent
    );
    animation: shimmerLine 2.5s infinite;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.pricing-header .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.pricing-header .icon-wrapper i {
    font-size: 2rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.pricing-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.pricing-card:hover .icon-wrapper i {
    transform: scale(1.1);
}

.pricing-header h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-header .subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.price {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    position: relative;
}

/* Style pour "à partir de" */
.price .amount.from-price {
    font-size: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.price .amount.from-price::before {
    content: 'à partir de';
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

/* Alternative avec badge */
.price .amount-wrapper {
    position: relative;
    display: inline-block;
}

.price .from-badge {
    position: absolute;
    top: -10px;
    left: -15px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    transform: rotate(-10deg);
    font-weight: 500;
}

.pricing-card:hover .price .amount {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.price .label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.pricing-features {
    margin: 2rem 0;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding-left: 0.5rem;
    transition: all 0.3s ease;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.pricing-features i {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.pricing-card:hover .pricing-features li {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.95);
}

.pricing-cta {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    margin-top: 2.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pricing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.pricing-cta:hover {
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.pricing-cta:hover::before {
    transform: translateX(0);
}

.pricing-cta.featured {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.15);
}

.pricing-cta.featured::before {
    background: white;
}

.pricing-cta.featured:hover {
    border-color: white;
}

/* Effet de hover amélioré */
.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.15);
}

/* Animation de pulse pour les cartes */
@keyframes cardPulse {
    0% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 215, 0, 0);
    }
    70% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.pricing-card.featured {
    animation: cardPulse 3s infinite;
}

/* Responsive Design - Améliorations */
@media (max-width: 1200px) {
    .pricing-grid {
        padding: 1rem 0;
    }
    
    .pricing-card.featured {
        flex: 0 0 350px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        gap: 1.5rem;
    }
    
    .pricing-card {
        flex: 0 0 300px;
    }
    
    .pricing-card.featured {
        flex: 0 0 300px;
    }

    .pricing-hero .main-title {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-header .icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }

    @keyframes autoScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 4 - 1.5rem * 4)); /* Ajusté pour les 4 cartes en taille mobile */
        }
    }
    
    .pricing-grid {
        animation-duration: 25s; /* Un peu plus rapide sur mobile */
    }
}

/* Assurer que le conteneur est suffisamment large */
.pricing-section .container {
    max-width: 100%;
    padding: 0 2rem;
}

/* Modification pour afficher 3 cartes en haut et 3 en bas */
@media (min-width: 1200px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 2rem;
        overflow: visible;
        max-width: 1200px;
        margin: 3rem auto;
    }
    
    .pricing-card {
        width: 100%;
        margin: 0;
    }
    
    .pricing-card.featured {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Ajustement pour les écrans moyens */
@media (max-width: 1199px) and (min-width: 768px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        overflow: visible;
    }
    
    .pricing-card {
        width: 100%;
        margin: 0;
    }
    
    .pricing-card.featured {
        grid-column: 1 / span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Ajout d'animations automatiques aux cartes de prix */

/* Animation de particules flottantes */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Particules dorées flottantes */
.pricing-card .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.pricing-card .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100%) translateX(10px);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(-10px);
        opacity: 0;
    }
}

/* Animation de pulsation pour l'icône */
.pricing-header .icon-wrapper i {
    animation: iconPulse 3s infinite alternate;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    100% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

/* Animation de bordure brillante */
.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgba(255, 215, 0, 0.1)
    );
    animation: rotateBorder 10s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animation du prix */
.price .amount {
    animation: pricePulse 5s infinite alternate;
}

@keyframes pricePulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

/* Script pour ajouter dynamiquement les particules */
document.addEventListener('DOMContentLoaded', function() {
    const cards = document.querySelectorAll('.pricing-card');
    
    cards.forEach(card => {
        // Créer le conteneur de particules
        const particles = document.createElement('div');
        particles.className = 'particles';
        
        // Ajouter des particules
        for (let i = 0; i < 15; i++) {
            const particle = document.createElement('div');
            particle.className = 'particle';
            particle.style.left = Math.random() * 100 + '%';
            particle.style.animationDelay = Math.random() * 5 + 's';
            particle.style.animationDuration = (Math.random() * 5 + 5) + 's';
            particles.appendChild(particle);
        }
        
        card.appendChild(particles);
    });
}); 