:root {
    --primary-violet: #8b5cf6;
    --secondary-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    --shadow-glow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations d'arrière-plan */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: morphBackground 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes morphBackground {
    0%,
    100% {
        background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    }

    50% {
        background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 60% 60%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    }
}

/* Sections principales */
.section-modern {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards de tarification */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--gradient-card);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(139, 92, 246, 0.1), transparent 30%);
    animation: rotateGlow 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(139, 92, 246, 0.3);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-violet);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    height: 6px;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.plan-icon i {
    font-size: 1.5rem;
    color: white;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
}

.plan-price .currency {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-light);
}

.plan-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
}

.plan-button {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 9999;
}

.plan-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.plan-button:hover::before {
    left: 100%;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* Section Contact */
.contact-section {
    background: var(--dark-bg);
    position: relative;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--gradient-card);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
    border-radius: 24px;
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-control-modern {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: rgba(15, 23, 42, 1);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    margin: 32px 0;
}

.modern-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-violet);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.modern-checkbox:checked {
    background: var(--primary-violet);
    border-color: var(--primary-violet);
}

.modern-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.privacy-link {
    color: var(--primary-violet);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.privacy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.privacy-link:hover::after {
    width: 100%;
}

.privacy-link:hover {
    color: var(--secondary-pink);
}

.submit-button {
    width: 100%;
    padding: 18px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

/* Modal moderne */
.modal-modern .modal-content {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    color: var(--text-light);
}

.modal-modern .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 30px 20px;
}

.modal-modern .modal-body {
    padding: 20px 30px 30px;
}

.modal-modern .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px 30px;
}

.success-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: successPulse 1.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.modal-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-modern {
        padding: 80px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card.featured {
        transform: none;
    }
}