:root {
    --webco-gold: #f6d77a;
    --webco-gold-strong: #e5b94d;
    --webco-gold-deep: #b88b22;
    --webco-dark: #0b0b0b;
    --webco-card: rgba(24, 24, 24, 0.94);
    --webco-line: rgba(246, 215, 122, 0.25);
    --webco-text: #f8f8f8;
    --webco-muted: rgba(255, 255, 255, 0.76);
}

.webco-pricing-section {
    position: relative;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: clamp(58px, 7vw, 112px) clamp(18px, 5vw, 76px) !important;
    color: var(--webco-text);
    background:
        radial-gradient(circle at 18% 18%, rgba(246, 215, 122, 0.16), transparent 29%),
        radial-gradient(circle at 78% 12%, rgba(246, 215, 122, 0.11), transparent 25%),
        linear-gradient(135deg, #0c0c0c 0%, #181818 44%, #110d05 100%);
    overflow: hidden;
    isolation: isolate;
}

.webco-pricing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.62;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.93), rgba(0,0,0,0.12));
    z-index: -2;
}

.webco-pricing-section::after {
    content: "";
    position: absolute;
    inset: auto -20% -42% -20%;
    height: 56%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(246, 215, 122, 0.18), transparent 64%);
    filter: blur(24px);
    z-index: -1;
}

.webco-pricing-inner {
    width: min(1280px, 100%);
    max-width: 1280px !important;
    margin-inline: auto !important;
}

.webco-pricing-title {
    margin: 0 0 18px !important;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 62px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em;
    font-weight: 900 !important;
    text-wrap: balance;
}

.webco-pricing-subtitle {
    max-width: 1120px;
    margin: 0 0 clamp(32px, 4vw, 54px) !important;
    color: var(--webco-muted);
    font-size: clamp(17px, 1.5vw, 21px) !important;
    line-height: 1.65;
    font-weight: 500;
}

.webco-pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px) !important;
    align-items: stretch !important;
    margin: 0 !important;
}

.webco-pricing-grid > .wp-block-column {
    margin: 0 !important;
    min-width: 0 !important;
}

.webco-price-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-height: 100% !important;
    padding: clamp(24px, 2.4vw, 34px) !important;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
        var(--webco-card);
    box-shadow:
        0 28px 70px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.webco-price-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(246,215,122,0.16) 42%, transparent 64%);
    transform: translateX(-65%);
    transition: opacity 260ms ease, transform 680ms ease;
}

.webco-price-card:hover {
    transform: translateY(-8px);
    border-color: rgba(246, 215, 122, 0.42);
    box-shadow:
        0 32px 90px rgba(0,0,0,0.48),
        0 0 0 1px rgba(246,215,122,0.13),
        0 0 44px rgba(246,215,122,0.10);
}

.webco-price-card:hover::before {
    opacity: 1;
    transform: translateX(65%);
}

.webco-price-card.is-popular {
    border-color: rgba(246, 215, 122, 0.62);
    background:
        radial-gradient(circle at 50% 0%, rgba(246, 215, 122, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(246,215,122,0.06), rgba(255,255,255,0.01)),
        rgba(25, 22, 15, 0.96);
    box-shadow:
        0 34px 100px rgba(0,0,0,0.54),
        0 0 0 1px rgba(246, 215, 122, 0.18),
        0 0 70px rgba(246, 215, 122, 0.12);
}

.webco-price-name {
    margin: 0 !important;
    color: #ffffff;
    font-size: clamp(22px, 2vw, 29px) !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em;
}

.webco-popular-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content !important;
    margin: 8px 0 12px !important;
    padding: 5px 13px 4px !important;
    border-radius: 999px;
    color: #0f0f0f !important;
    background: linear-gradient(135deg, var(--webco-gold), var(--webco-gold-strong));
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(229, 185, 77, 0.22);
}

.webco-price-amount {
    margin: 14px 0 12px !important;
    color: var(--webco-gold) !important;
    font-size: clamp(42px, 4.4vw, 58px) !important;
    line-height: 0.95 !important;
    font-weight: 950 !important;
    letter-spacing: -0.055em;
    text-shadow: 0 10px 30px rgba(246, 215, 122, 0.18);
}

.webco-price-amount.is-text-price {
    font-size: clamp(28px, 2.5vw, 39px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
}

.webco-price-desc {
    margin: 0 0 22px !important;
    color: var(--webco-muted);
    font-size: clamp(16px, 1.25vw, 18px) !important;
    line-height: 1.55;
    font-weight: 500;
}

.webco-price-list {
    display: grid;
    gap: 12px;
    margin: 0 0 30px !important;
    padding: 0 !important;
    list-style: none !important;
    color: rgba(255,255,255,0.84);
    font-size: 16px !important;
    line-height: 1.45;
}

.webco-price-list li {
    position: relative;
    margin: 0 !important;
    padding-left: 30px;
    list-style: none !important;
}

.webco-price-list li::marker {
    content: "";
}

.webco-price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.02em;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--webco-gold);
    background: rgba(246, 215, 122, 0.13);
    font-size: 13px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(246, 215, 122, 0.16);
}

.webco-price-button-wrap {
    margin-top: auto !important;
    width: 100%;
}

/* Force visibility: corrige les anciens scripts qui masquaient des boutons Demander un devis. */
.webco-pricing-section .webco-price-button-wrap,
.webco-pricing-section .wp-block-buttons.webco-price-button-wrap,
.webco-pricing-section .wp-block-button.webco-price-button,
.webco-pricing-section .webco-price-button-wrap .wp-block-button,
.webco-pricing-section .webco-pricing-actions,
.webco-pricing-section .webco-pricing-actions .wp-block-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.webco-price-button-wrap .wp-block-button,
.webco-price-button {
    width: 100% !important;
}

.webco-price-button .wp-block-button__link,
.webco-price-button a.wp-block-button__link {
    display: block !important;
    width: 100% !important;
    padding: 16px 20px !important;
    border-radius: 999px !important;
    color: #0e0e0e !important;
    background: linear-gradient(135deg, var(--webco-gold), var(--webco-gold-strong)) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 18px 36px rgba(229, 185, 77, 0.24);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.webco-price-button .wp-block-button__link:hover,
.webco-price-button a.wp-block-button__link:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 24px 48px rgba(229, 185, 77, 0.34);
}

.webco-pricing-bottom {
    max-width: 980px !important;
    margin: clamp(30px, 4vw, 52px) auto 0 !important;
    padding: clamp(20px, 2.5vw, 30px) !important;
    border: 1px solid rgba(246, 215, 122, 0.18);
    border-radius: 24px;
    background: rgba(255,255,255,0.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 60px rgba(0,0,0,0.22);
    text-align: center;
}

.webco-pricing-note {
    max-width: 840px;
    margin: 0 auto 20px !important;
    color: rgba(255,255,255,0.82);
    font-size: clamp(16px, 1.3vw, 18px) !important;
    line-height: 1.65;
}

.webco-pricing-actions {
    gap: 12px !important;
    margin-top: 10px !important;
}

.webco-main-button .wp-block-button__link,
.webco-main-button a.wp-block-button__link {
    padding: 14px 28px !important;
    min-width: min(260px, 100%);
    border-radius: 999px !important;
    color: #0e0e0e !important;
    background: linear-gradient(135deg, var(--webco-gold), var(--webco-gold-strong)) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow: 0 18px 36px rgba(229, 185, 77, 0.22);
}

.webco-phone-button .wp-block-button__link,
.webco-phone-button a.wp-block-button__link {
    color: var(--webco-gold) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: inset 0 0 0 1px rgba(246, 215, 122, 0.34), 0 18px 36px rgba(0,0,0,0.20) !important;
}

.webco-typing-cursor {
    display: inline-block;
    width: 0.08em;
    margin-left: 0.08em;
    color: var(--webco-gold);
    animation: webcoBlink 720ms steps(2, start) infinite;
}

@keyframes webcoBlink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

.webco-reveal-ready .webco-price-card,
.webco-reveal-ready .webco-pricing-bottom {
    opacity: 0;
    transform: translateY(20px);
}

.webco-reveal-ready .webco-price-card.webco-visible,
.webco-reveal-ready .webco-pricing-bottom.webco-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.webco-reveal-ready .webco-price-card.webco-visible:hover {
    transform: translateY(-8px);
}

.webco-reveal-ready .webco-price-card:nth-child(2).webco-visible { transition-delay: 80ms; }
.webco-reveal-ready .webco-price-card:nth-child(3).webco-visible { transition-delay: 150ms; }
.webco-reveal-ready .webco-price-card:nth-child(4).webco-visible { transition-delay: 220ms; }

@media (max-width: 1180px) {
    .webco-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .webco-pricing-section {
        padding: 50px 16px !important;
    }

    .webco-pricing-grid {
        grid-template-columns: 1fr;
    }

    .webco-price-card.is-popular {
        transform: none;
    }

    .webco-pricing-title {
        letter-spacing: -0.032em;
    }

    .webco-pricing-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .webco-pricing-actions .wp-block-button,
    .webco-main-button .wp-block-button__link {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .webco-price-card,
    .webco-price-card::before,
    .webco-price-button .wp-block-button__link,
    .webco-main-button .wp-block-button__link,
    .webco-typing-cursor {
        transition: none !important;
        animation: none !important;
    }
}
