/* Variables globales */
:root {
    --bg-darker: #0a0a0a;
    --card-bg: rgba(26, 26, 26, 0.98);
    --blue-accent: #4ebaff;
    --purple-accent: #7647cf;
    --text-light: #6b746c;
    --text-muted: #15e7cb;
    --cpu-standard: #e2800f;
    --cpu-extreme: #ce1d0a;
}

/* Section principale */
.pricing-section {
    padding: 1.5rem 0;
    background: black;
    min-height: 100vh;
    position: relative;
}

/* Variables globales - Ajout de la couleur rouge */
:root {
    --extreme-red: #e74c3c;
    --extreme-red-glow: rgba(231, 76, 60, 0.4);
}

/* Toggle Switch */
.pricing-toggle {
    position: relative;
    display: inline-flex;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 50px;
    padding: 4px;
    margin: 1.5rem auto;
    border: 1px solid rgba(78, 186, 255, 0.2);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-btn {
    padding: 8px 25px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 25px;
    overflow: hidden;
}

    /* Style pour le bouton Standard actif */
    .toggle-btn[data-type="standard"].active {
        color: var(--bg-darker);
        background: var(--blue-accent);
        box-shadow: 0 0 15px rgba(78, 186, 255, 0.3);
    }

    /* Style pour le bouton Extreme actif */
    .toggle-btn[data-type="extreme"].active {
        color: var(--bg-darker);
        background: var(--extreme-red);
        box-shadow: 0 0 15px var(--extreme-red-glow);
        animation: glowPulse 2s infinite;
    }

        /* Effet de reflet */
        .toggle-btn[data-type="extreme"].active::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient( 45deg, transparent, rgba(255, 255, 255, 0.1), transparent );
            transform: rotate(45deg);
            animation: reflectSlide 3s infinite;
        }

/* Animation du reflet */
@keyframes reflectSlide {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    50% {
        transform: rotate(45deg) translateX(100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* Animation du glow */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 15px var(--extreme-red-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--extreme-red-glow);
    }

    100% {
        box-shadow: 0 0 15px var(--extreme-red-glow);
    }
}

/* Suppression de l'ancien slider */
.toggle-slider {
    display: none;
}
/* Correction pour les �tats actifs */
.toggle-btn.active {
    color: var(--bg-darker);
    background-color: var(--blue-accent);
    border-radius: 25px;
}

/* Suppression de l'ancien style qui causait le probl�me */
.toggle-btn:last-child.active ~ .toggle-slider {
    display: none; /* On cache le slider qui n'est plus n�cessaire */
}
/* Grid des cartes */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    transition: opacity 0.3s ease;
}

/* Style des cartes */
.pricing-card {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(78, 186, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .pricing-card:hover {
        transform: translateY(-3px);
        border-color: var(--blue-accent);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(78, 186, 255, 0.15);
    }

/* Styles sp�cifiques pour la carte personnalis�e */
.custom-offer {
    background: linear-gradient(145deg, var(--card-bg), rgba(78, 186, 255, 0.05));
    border: 1px solid rgba(78, 186, 255, 0.2);
}

    .custom-offer:hover {
        transform: translateY(-3px);
        border-color: var(--purple-accent);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(118, 71, 207, 0.2);
    }

    .custom-offer .price {
        background: linear-gradient(45deg, var(--blue-accent), var(--purple-accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.8rem;
    }

/* Titre de la carte */
.pricing-card h3 {
    background: linear-gradient(45deg, var(--blue-accent), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Logo */
.pricing-card img {
    display: block;
    margin: 1rem auto;
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.pricing-card:hover img {
    transform: scale(1.1) rotate(-5deg);
}

/* Prix */
.price {
    font-size: 2rem;
    color: var(--blue-accent);
    text-align: center;
    margin: 1rem 0;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(78, 186, 255, 0.3);
    position: relative;
}

    .price::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--blue-accent), transparent);
    }

    .price span {
        font-size: 0.9rem;
        color: var(--text-muted);
        font-weight: normal;
    }

/* Liste des specs */
.spec-list {
    margin: 1.5rem 0;
}

.spec-item {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(20, 20, 20, 0.5);
}

    .spec-item:hover {
        background: rgba(78, 186, 255, 0.05);
        transform: translateX(3px);
        border-color: rgba(78, 186, 255, 0.2);
    }

/* Titres des specs */
.spec-title {
    color: var(--blue-accent);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* D�tails CPU */
.spec-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Couleurs sp�cifiques */
.standard .cpu-speed {
    color: var(--cpu-standard);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.extreme .cpu-speed {
    color: var(--cpu-extreme);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

/* Bouton Commander */
.order-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(45deg, rgba(122, 82, 183, 0.1), rgba(78, 186, 255, 0.1));
    border: 2px solid var(--purple-accent);
    color: var(--blue-accent);
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

    .order-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(118, 71, 207, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .order-btn:hover {
        background: var(--purple-accent);
        color: var(--text-light);
        box-shadow: 0 0 20px rgba(122, 82, 183, 0.4);
    }

        .order-btn:hover::before {
            left: 100%;
        }

.coming-soon {
    background: linear-gradient(45deg, rgba(118, 71, 207, 0.2), rgba(78, 186, 255, 0.2));
    opacity: 0.8;
    cursor: not-allowed;
}

    .coming-soon:hover {
        background: linear-gradient(45deg, rgba(118, 71, 207, 0.3), rgba(78, 186, 255, 0.3));
        box-shadow: none;
        color: var(--text-light);
    }

/* Media Queries */
@media (min-width: 1500px) {
    .pricing-cards {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1600px;
        gap: 1rem;
    }
}

@media (max-width: 1499px) and (min-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 1199px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .toggle-btn {
        padding: 8px 20px;
    }
}
