/* Styles spécifiques pour la page Solutions */

/* Package Cards */
.package-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px 25px 0 0;
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.package-card:hover::before {
    transform: scaleX(1);
}

.package-card:hover::after {
    opacity: 1;
}

.package-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.9) inset;
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.9) inset,
        0 0 30px rgba(var(--primary-color-rgb), 0.3);
    background: linear-gradient(145deg, #ffffff, #f0f8ff);
}

.package-card.featured::before {
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.95) inset,
        0 0 40px rgba(var(--primary-color-rgb), 0.4);
}

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

.package-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 10;
    transform: rotate(2deg);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: rotate(2deg) scale(1); }
    50% { transform: rotate(2deg) scale(1.05); }
}

.package-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.package-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.package-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover .package-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 20px 45px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.4) inset;
}

.package-card:hover .package-icon::before {
    opacity: 1;
}

.package-icon i {
    font-size: 2.2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.package-card:hover .package-icon i {
    transform: scale(1.1);
}

.package-header h3 {
    color: var(--gray-900);
    margin-bottom: 1.2rem;
    font-weight: 800;
    font-size: 1.6rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--primary-color-rgb), 0.05));
    border-radius: 15px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.package-price .currency {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 600;
}

.package-price .amount {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.package-price .period {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 600;
}

.package-features {
    margin-bottom: 2.5rem;
}

.package-features h4 {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    text-align: center;
    font-weight: 700;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.08), rgba(var(--primary-color-rgb), 0.08));
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.5);
}

.package-features li:hover {
    color: var(--primary-color);
    transform: translateX(8px);
    background: rgba(var(--primary-color-rgb), 0.05);
    border-color: rgba(var(--primary-color-rgb), 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.package-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.package-footer {
    margin-top: auto;
}

.package-footer .btn {
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.package-footer .btn::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.5s ease;
}

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

.package-footer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 0.9rem;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--gray-700);
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table i {
    margin-right: 0.5rem;
}

/* Advantage Cards */
.advantage-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.advantage-icon i {
    font-size: 1.75rem;
    color: white;
}

.advantage-card h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.advantage-card p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color)) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 10;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section .btn {
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Badge styles */
.badge.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .package-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .package-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

.advantage-card {
    animation: fadeInUp 0.6s ease forwards;
}

.advantage-card:nth-child(1) { animation-delay: 0.5s; }
.advantage-card:nth-child(2) { animation-delay: 0.6s; }
.advantage-card:nth-child(3) { animation-delay: 0.7s; }
.advantage-card:nth-child(4) { animation-delay: 0.8s; }
