:root {
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(59, 130, 246, 0.5);
    --glow-color: rgba(59, 130, 246, 0.15);
    --fee-card-bg: rgba(15, 23, 42, 0.6);
}

.pricing-hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    color: var(--accent-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.page-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    align-items: stretch;
    /* Changé de flex-start à stretch pour hauteurs égales */
}

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

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.price-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Important pour que le bouton descende */
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.price-card.featured {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.6);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 20px 50px -10px rgba(59, 130, 246, 0.2);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    white-space: nowrap;
}

.card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.plan-name {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Permet d'occuper l'espace disponible */
}

.card-action {
    margin-top: auto;
    /* Pousse le bouton vers le bas */
}

.btn-card {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-card.primary {
    background: var(--accent-primary);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-card.primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item.muted {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.cross-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.fees-section {
    background: var(--bg-secondary);
    position: relative;
    padding: 6rem 0;
}

.fees-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .fees-grid {
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .fees-grid {
        padding: 0 1rem;
    }

    .fee-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.fee-card {
    position: relative;
    background: var(--fee-card-bg);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 0 1 650px;
    max-width: 650px;
}

.fee-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
}

.fee-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05), transparent 70%);
    pointer-events: none;
}

.fee-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.fee-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.fee-icon-wrapper svg {
    width: 1.75rem;
    height: 1.75rem;
}

.fee-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.fee-title-group p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.fee-badge {
    margin-left: auto;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gradient-1 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.gradient-2 {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.fee-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fee-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fee-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
}

.fee-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.fee-value {
    color: var(--text-primary);
    font-weight: 700;
    font-family: monospace;
}

.fee-fixed {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8em;
}

.text-accent {
    color: var(--accent-light);
}

.text-gradient-gold {
    background: linear-gradient(to right, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fee-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.fee-progress {
    height: 100%;
    width: 0;
    background: var(--text-tertiary);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight .fee-progress {
    background: var(--accent-light);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.best .fee-progress {
    background: linear-gradient(90deg, #fbbf24, #d97706);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Animations CSS simplifiées pour éviter les conflits JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


.pricing-notes {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--fee-card-bg);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    backdrop-filter: blur(12px);
}

.notes-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.note-item {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 3px solid rgba(59, 130, 246, 0.3);
}

.note-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.fee-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.fee-header-left {
    display: flex;
    gap: 1rem;
}

.fee-toggle-container {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.fee-toggle-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    gap: 2px;
}

.fee-toggle-btn span {
    display: block;
    line-height: 1.2;
}

.fee-toggle-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.badge-mini {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.badge-mini.outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1px 4px;
    border-radius: 4px;
}

.fee-description-text {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
    font-style: italic;
    text-align: center;
}

.fee-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.fee-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les options Viva bloquées */
.fee-bar-row.locked {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
}

.fee-bar-row.locked .fee-track {
    background: rgba(255, 255, 255, 0.02);
}

.fee-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
    margin-bottom: 0.25rem;
    text-align: right;
}

.section-toggle-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.section-toggle-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.section-toggle-btn:hover {
    border-color: var(--border-accent);
}

.section-toggle-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fee-card.hidden {
    display: none;
}

/* Ajustement responsive mobile */
@media (max-width: 480px) {
    .fee-toggle-btn {
        font-size: 0.75rem;
    }

    .badge-mini {
        font-size: 0.55rem;
    }
}

@media (max-width: 767px) {
    .pricing-notes {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .notes-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .notes-content {
        gap: 1.25rem;
    }

    .note-item {
        font-size: 0.875rem;
        padding-left: 0.75rem;
        border-left-width: 2px;
    }
}

@media (max-width: 480px) {
    .pricing-notes {
        padding: 1.75rem 1.25rem;
        margin: 0 0.75rem;
    }

    .notes-title {
        font-size: 1.125rem;
    }

    .note-item {
        font-size: 0.8125rem;
    }
}


@media (max-width: 767px) {
    .pricing-hero {
        padding: 8rem 0 4rem;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
    }

    .badge-pill {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
        margin-bottom: 1rem;
    }

    .page-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .pricing-grid {
        gap: 1.5rem;
        margin-bottom: 4rem;
        padding: 0 1rem;
    }

    .price-card {
        padding: 1.75rem 1.5rem;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-card.featured:hover {
        transform: scale(1.02) translateY(-8px);
    }

    .popular-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .card-header {
        margin-bottom: 1.5rem;
    }

    .plan-name {
        font-size: 1rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .plan-price span {
        font-size: 0.8125rem;
    }

    .plan-desc {
        font-size: 0.8125rem;
    }

    .card-features {
        gap: 0.875rem;
        margin-bottom: 1.5rem;
        font-size: 0.8125rem;
    }

    .btn-card {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .check-icon,
    .cross-icon {
        width: 1rem;
        height: 1rem;
    }

    .fees-section {
        padding: 4rem 0;
    }

    .section-header {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .fees-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .fee-card {
        padding: 2rem 1.5rem;
    }

    .fee-header {
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .fee-icon-wrapper {
        width: 3rem;
        height: 3rem;
    }

    .fee-icon-wrapper svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .fee-title-group h3 {
        font-size: 1.125rem;
    }

    .fee-title-group p {
        font-size: 0.8125rem;
    }

    .fee-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .fee-bars {
        gap: 1.25rem;
    }

    .fee-info {
        font-size: 0.875rem;
    }

    .fee-value {
        font-size: 0.875rem;
    }

    .fee-track {
        height: 5px;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 7rem 0 3rem;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }

    .page-title {
        font-size: 2rem;
        padding: 0 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        padding: 0 0.75rem;
    }

    .pricing-grid {
        padding: 0 0.75rem;
    }

    .price-card {
        padding: 1.5rem 1.25rem;
    }

    .plan-price {
        font-size: 1.75rem;
    }

    .card-features {
        font-size: 0.75rem;
    }

    .btn-card {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .fees-section {
        padding: 3rem 0;
    }

    .section-header {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .fees-grid {
        padding: 0 0.75rem;
    }

    .fee-card {
        padding: 1.75rem 1.25rem;
    }

    .fee-header {
        gap: 0.75rem;
    }

    .fee-icon-wrapper {
        width: 2.75rem;
        height: 2.75rem;
    }

    .fee-icon-wrapper svg {
        width: 1.375rem;
        height: 1.375rem;
    }

    .fee-title-group h3 {
        font-size: 1rem;
    }

    .fee-title-group p {
        font-size: 0.75rem;
    }

    .fee-info {
        font-size: 0.8125rem;
    }

    .fee-value {
        font-size: 0.8125rem;
    }

    .fee-bars {
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 1.75rem;
    }

    .price-card {
        padding: 1.25rem 1rem;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .fee-card {
        padding: 1.5rem 1rem;
    }

    .fee-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fee-badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}