/* ═══════════════════════════════════
   BLOC 5 — PRICING (EXCELLENCE)
═══════════════════════════════════ */

.pricing-section {
    min-height: 100vh;
    padding: 120px 0;
    background: radial-gradient(circle at 20% 50%, #15064e 0%, #0E0338 100%);
    color: white;
    position: relative;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    align-items: center;
}

/* ══ CHAOTIC ASSEMBLY ANIMATION ══ */
@keyframes assembleChaotic {
    0% {
        opacity: 0;
        transform: translate(var(--ix), var(--iy)) rotate(var(--ir)) scale(0.4);
        filter: blur(30px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0) scale(1);
        filter: blur(0);
    }
}

.pricing-section.is-visible .comp-grid div {
    /* Animation removed as per request */
    opacity: 1;
    transform: none;
}

/* Trajectories for every cell */
.comp-grid div:nth-child(4n+1),
.row-label {
    --ix: -500px;
    --iy: 200px;
    --ir: -60deg;
}

.comp-grid div:nth-child(4n+2) {
    --ix: 400px;
    --iy: -300px;
    --ir: 45deg;
}

.comp-grid div:nth-child(4n+3) {
    --ix: -300px;
    --iy: -450px;
    --ir: -20deg;
}

.comp-grid div:nth-child(4n+4) {
    --ix: 550px;
    --iy: 350px;
    --ir: 75deg;
}

/* Staggered Delays */
.plan-header:nth-child(2) {
    --id: 0.1s;
}

.plan-header:nth-child(3) {
    --id: 0.15s;
}

.plan-header:nth-child(4) {
    --id: 0.2s;
}

.comp-row:nth-child(n) div {
    --id: calc(var(--row-idx, 0) * 0.1s + 0.3s);
}

/* Right Side Info */
.pricing-info-side {
    display: flex;
    flex-direction: column;
}

.pricing-info-side h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    margin: 0 0 25px;
}

.pricing-info-side p {
    font-size: 13px;
    opacity: 0.6;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 35px;
}

.pricing-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px 0 35px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-direction: column;
}

.control-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.4s;
}

.control-label::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.premium-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.switch-btn {
    background: transparent;
    border: none;
    padding: 10px 22px;
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.switch-btn.active {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 8px 25px var(--color-accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.switch-btn:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Table Structure */
.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3px 6px;
    position: relative;
    padding-top: 30px;
    /* Fix badge clipping */
    align-items: stretch;
}

.plan-header {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.plan-header h4 {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: color 0.4s;
}

/* HIGHLIGHTING POPULAR */
.plan-header.popular {
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.mode-protrot .plan-header.popular {
    background: linear-gradient(180deg, rgba(36, 187, 155, 0.25) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid #26bb9c;
    border-bottom: none;
}

.plan-header.popular::after {
    content: "LE PLUS CHOISI";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.4s;
    z-index: 20;
}

.plan-price {
    font-size: 30px;
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
}

.popular .plan-price {
    color: white;
    text-shadow: 0 0 25px var(--color-accent-glow);
}

.comp-row {
    display: contents;
}

.row-label {
    padding: 22px 30px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px 0 0 16px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: rgba(255, 255, 255, 0.95);
}

.row-cell {
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    transition: all 0.3s ease;
}

.row-cell:hover:not(.popular-col) {
    background: rgba(255, 255, 255, 0.08);
}

.row-cell:last-child {
    border-radius: 0 16px 16px 0;
}

.popular-col {
    background: rgba(184, 157, 125, 0.15);
    border: 1px solid var(--color-accent);
    border-top: none;
    border-bottom: none;
    z-index: 5;
}

.mode-protrot .popular-col {
    background: rgba(36, 187, 155, 0.15);
}

/* Specific for action row */
.action-cell.popular-col {
    border-bottom: 2px solid var(--color-accent);
    border-radius: 0 0 24px 24px;
}

.mode-protrot .popular-col {
    background: rgba(36, 187, 155, 0.12);
}

.comp-cell svg.check {
    color: var(--color-accent);
    filter: drop-shadow(0 0 12px var(--color-accent-glow));
    transition: color 0.4s;
    width: 24px;
    height: 24px;
}

.comp-cell svg.cross {
    color: rgba(255, 255, 255, 0.1);
    width: 20px;
    height: 20px;
}

svg.check {
    width: 20px;
}

svg.cross {
    width: 20px;
}

.row-cell span.val {
    font-weight: 800;
    font-size: 16px;
    color: white;
    letter-spacing: 0.5px;
}

.btn-action {
    width: 90%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s;
}

.btn-action:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.popular-col .btn-action {
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    box-shadow: 0 10px 25px var(--color-accent-glow);
}

.popular-col .btn-action:hover {
    background: var(--color-white);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px var(--color-glow);
}

/* BUTTON DEMO */
.pricing-info-side .btn-demo {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.pricing-info-side .btn-demo:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--color-accent-glow);
}

/* Mobile */
.pricing-mobile-cards {
    display: none;
}

@media (max-width: 1023px) {
    .pricing-split {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0px;
    }

    .pricing-info-side {
        order: -1;
        text-align: center;
        align-items: center;
    }

    .pricing-table-side {
        display: none !important;
    }

    .comp-grid {
        display: none !important;
    }

    .pricing-mobile-cards {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 1100px !important;
        margin: 20px auto 0 !important;
        align-self: center !important;
    }

    .pricing-card-mobile {
        width: 320px !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        padding: 35px 25px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        align-items: center;
        text-align: center;
    }

    @media (max-width: 767px) {
        .pricing-mobile-cards {
            flex-direction: column !important;
            max-width: 480px !important;
        }

        .pricing-card-mobile {
            width: 100% !important;
        }
    }

    .pricing-card-mobile.popular {
        background: linear-gradient(180deg, rgba(184, 157, 125, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
        border: 2px solid var(--color-accent);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px var(--color-accent-glow);
    }

    .mode-protrot .pricing-card-mobile.popular {
        background: linear-gradient(180deg, rgba(36, 187, 155, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
        border-color: var(--color-secondary);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(36, 187, 155, 0.15);
    }

    .mobile-popular-badge {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-accent);
        color: var(--color-primary);
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        padding: 6px 18px;
        border-radius: 100px;
        box-shadow: 0 10px 20px var(--color-accent-glow);
    }

    .mode-protrot .mobile-popular-badge {
        background: var(--color-secondary);
        box-shadow: 0 10px 20px rgba(36, 187, 155, 0.3);
    }

    .plan-mobile-title {
        font-size: 14px;
        color: var(--color-accent);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
    }

    .plan-mobile-price {
        font-size: 36px;
        font-weight: 800;
        color: white;
        line-height: 1;
    }

    .plan-mobile-price .period-text {
        font-size: 14px;
        font-weight: 500;
        opacity: 0.6;
    }

    .plan-mobile-features {
        list-style: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 10px 0;
        padding: 0;
    }

    .plan-mobile-features li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        text-align: left;
        font-size: 14px;
    }

    .feat-icon-wrap {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .feat-icon-wrap:has(.feat-val) {
        width: auto;
        min-width: 24px;
        height: auto;
        justify-content: flex-end;
    }

    .feat-val {
        font-weight: 800;
        color: white;
        font-size: 14px;
        white-space: nowrap;
        text-align: right;
    }

    .feat-label {
        order: -1;
        flex: 1 1 auto;
        text-align: left;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 500;
    }

    .pricing-card-mobile .btn-action {
        width: 100%;
        padding: 14px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 100px;
        margin-top: 10px;
    }
}




button#ecran-toggle:focus {
    background: transparent !important;
}


button#ecran-toggle:hover {
    background: transparent !important;
}