/* ===== PRICING SECTION ===== */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.pricing-section .container-main {
    position: relative;
    z-index: 1;
}

.country-switcher-wrapper {
    background: white;
    padding: 35px 40px;
    border-radius: 25px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
}

.country-switcher-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.country-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #e0e0e0, #f5f5f5) border-box;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.country-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.1));
    transition: left 0.4s ease;
    z-index: 0;
}

.country-btn:hover::before {
    left: 0;
}

.country-btn:hover {
    border-color: #FFD700;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,215,0,0.3);
}

.country-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #1a2332;
    box-shadow: 0 8px 30px rgba(255,215,0,0.5);
    transform: translateY(-3px);
}

.country-btn.active::before {
    display: none;
}

.country-flag-btn {
    font-size: 26px;
    position: relative;
    z-index: 1;
}

.country-btn span:not(.country-flag-btn) {
    position: relative;
    z-index: 1;
}

.pricing-plans-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 380px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(255, 250, 240, 0.95) 100%);
    padding: 50px 30px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 215, 0, 0.1);
    border: 3px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 50%, rgba(255, 215, 0, 0.2) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Effet de fond subtil avec particules */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(44, 62, 80, 0.03) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.02) 50%, transparent 100%);
    z-index: 0;
    border-radius: 30px;
}

/* Barre supérieure brillante */
.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        transparent 0%,
        #e0e0e0 25%,
        #f5f5f5 50%,
        #e0e0e0 75%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmerBar 3s ease-in-out infinite;
    border-radius: 30px 30px 0 0;
    z-index: 1;
}

.pricing-card:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        #FFD700 25%,
        #FFA500 50%,
        #FFD700 75%,
        transparent 100%);
    background-size: 200% 100%;
    height: 8px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

@keyframes shimmerBar {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pricing-card.recommended {
    background-image:
        linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 250, 240, 0.98) 100%),
        linear-gradient(135deg,
            #FFD700 0%,
            #FFA500 50%,
            #FFD700 100%);
    box-shadow:
        0 20px 70px rgba(255, 215, 0, 0.4),
        0 10px 30px rgba(255, 165, 0, 0.3),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 215, 0, 0.3);
    transform: scale(1.08);
    animation: recommendedPulse 3s ease-in-out infinite;
}

.pricing-card.recommended::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.05) 50%, transparent 100%);
}

.pricing-card.recommended::after {
    background: linear-gradient(90deg,
        #FFD700 0%,
        #FFA500 25%,
        #FFED4E 50%,
        #FFA500 75%,
        #FFD700 100%);
    background-size: 200% 100%;
    height: 10px;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.8),
        0 4px 15px rgba(255, 165, 0, 0.5);
    animation: goldenShimmer 2s ease-in-out infinite;
}

@keyframes recommendedPulse {
    0%, 100% {
        box-shadow:
            0 20px 70px rgba(255, 215, 0, 0.4),
            0 10px 30px rgba(255, 165, 0, 0.3),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            inset 0 -1px 0 rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow:
            0 25px 80px rgba(255, 215, 0, 0.5),
            0 15px 40px rgba(255, 165, 0, 0.4),
            0 0 80px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            inset 0 -1px 0 rgba(255, 215, 0, 0.4);
    }
}

@keyframes goldenShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.recommended-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFED4E 100%);
    color: #1a2332;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow:
        0 6px 25px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 165, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow:
            0 6px 25px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow:
            0 8px 35px rgba(255, 215, 0, 0.7),
            0 0 60px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.18),
        0 15px 35px rgba(255, 215, 0, 0.2),
        0 0 50px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 215, 0, 0.2);
}

.pricing-card.recommended:hover {
    transform: translateY(-18px) scale(1.1);
    box-shadow:
        0 30px 90px rgba(255, 215, 0, 0.5),
        0 20px 50px rgba(255, 165, 0, 0.4),
        0 0 100px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 215, 0, 0.5);
}

.plan-name {
    font-size: 34px;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg,
        #2c3e50 0%,
        #1a2332 30%,
        #FFD700 50%,
        #1a2332 70%,
        #2c3e50 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameShine 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

@keyframes nameShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.plan-price {
    font-size: 60px;
    color: #1a2332;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow:
        2px 2px 0 rgba(255, 215, 0, 0.1),
        4px 4px 10px rgba(0, 0, 0, 0.05);
}

.plan-price-small {
    font-size: 18px;
    color: #888;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.plan-description {
    font-size: 15px;
    color: #777;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 35px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.plan-features li {
    padding: 12px 0;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.plan-features li:hover {
    color: #2c3e50;
    padding-left: 5px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li {
    position: relative;
    z-index: 2;
}

.plan-features li:before {
    content: "✓ ";
    color: #FFD700;
    font-weight: bold;
    margin-right: 12px;
    font-size: 20px;
    text-shadow:
        0 0 10px rgba(255, 215, 0, 0.5),
        0 2px 5px rgba(255, 165, 0, 0.3);
    animation: checkPulse 2s ease-in-out infinite;
}

/* Enlever le checkmark pour les lignes "Everything in..." */
.plan-features li:has(strong):before {
    content: "";
    margin-right: 0;
}

@keyframes checkPulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 215, 0, 0.5),
            0 2px 5px rgba(255, 165, 0, 0.3);
    }
    50% {
        text-shadow:
            0 0 15px rgba(255, 215, 0, 0.7),
            0 2px 8px rgba(255, 165, 0, 0.5);
    }
}

/* ===================================================
   RTL SUPPORT - Mode Hébreu
   ================================================= */

html[dir="rtl"] .plan-features {
    text-align: right;
}

html[dir="rtl"] .plan-features li {
    padding-right: 0;
    padding-left: 0;
}

html[dir="rtl"] .plan-features li:hover {
    padding-left: 0;
    padding-right: 5px;
}

html[dir="rtl"] .plan-features li:before {
    margin-right: 0;
    margin-left: 12px;
}
