/* Shared plan cards — identical on /tarifs and homepage #tarifs */

.tarif-section { position: relative; padding: clamp(80px, 10vw, 112px) 0; }
.tarif-section .container { max-width: 1160px; position: relative; z-index: 1; }
.tarif-section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.tarif-section__eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }
.tarif-section__title { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--gray-900); margin-bottom: 12px; line-height: 1.2; }
.tarif-section__subtitle { font-size: 1.02rem; color: var(--gray-600); line-height: 1.6; }

.tarif-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1024px) {
    .tarif-cards {
        grid-template-columns: 1fr;
        max-width: min(540px, 100%);
        margin: 0 auto;
        gap: clamp(20px, 4vw, 26px);
    }
    .tarif-card--featured {
        order: -1;
    }
}
@media (min-width: 1025px) { .tarif-cards { align-items: flex-end; } }
@media (max-width: 1180px) and (min-width: 1025px) {
    .tarif-cards {
        gap: 18px;
    }
    .tarif-card {
        padding: clamp(24px, 2.6vw, 30px) clamp(18px, 2vw, 24px) 24px;
    }
    .tarif-card__list li {
        font-size: 0.88rem;
    }
}

.tarif-card {
    position: relative;
    border-radius: var(--radius-2xl);
    padding: clamp(28px, 3vw, 34px) clamp(22px, 2.5vw, 28px) 26px;
    background: linear-gradient(165deg, rgba(255,255,255,0.97), rgba(248,250,252,0.96));
    border: 1px solid rgba(226,232,240,0.95);
    box-shadow: 0 20px 48px rgba(15,23,42,0.07), 0 0 0 1px rgba(255,255,255,0.85) inset;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease, border-color 0.35s ease;
}
.tarif-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 72px rgba(15,23,42,0.12), 0 0 0 1px rgba(255,255,255,0.95) inset;
    border-color: rgba(191,219,254,0.9);
}
.tarif-card--featured {
    padding-top: 36px;
    border: 2px solid var(--blue-400);
    background: linear-gradient(168deg, #fff 0%, rgba(239,246,255,0.92) 50%, rgba(255,255,255,0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(59,130,246,0.12),
        0 28px 64px rgba(59,130,246,0.18),
        0 16px 48px rgba(15,23,42,0.08);
    z-index: 2;
}
@media (min-width: 1025px) {
    .tarif-card--featured { transform: scale(1.03) translateY(-6px); margin: 0 -4px; }
    .tarif-card--featured:hover { transform: scale(1.04) translateY(-12px); }
}
.tarif-card__ribbon {
    position: absolute; top: 16px; right: 18px;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 6px 12px; border-radius: var(--radius-full);
    color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.tarif-card__audience {
    display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--blue-700); margin-bottom: 8px;
}
.tarif-card__name { font-size: 1.05rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; letter-spacing: -0.02em; }
.tarif-card__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tarif-card__price { font-size: clamp(2.1rem, 4vw, 2.65rem); font-weight: 800; letter-spacing: -0.03em; color: var(--gray-900); line-height: 1; }
.tarif-card__currency { font-size: 1.15rem; font-weight: 700; color: var(--blue-600); }
.tarif-card__per { font-size: 0.95rem; font-weight: 600; color: var(--gray-500); }
.tarif-card__pitch { font-size: 0.92rem; color: var(--gray-600); line-height: 1.55; margin-bottom: 12px; }
.tarif-card__outcome { font-size: 0.86rem; color: var(--gray-500); line-height: 1.5; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.tarif-card__list { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tarif-card__list li {
    display: flex; align-items: flex-start; gap: 11px; font-size: 0.9rem; color: var(--gray-700); line-height: 1.45;
}
.tarif-card__list i { color: var(--green-500); margin-top: 3px; font-size: 0.85rem; flex-shrink: 0; }
.tarif-card__cta {
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.tarif-card--featured .tarif-card__cta { font-weight: 700; box-shadow: 0 8px 28px rgba(59,130,246,0.32); }

.tarif-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.tarif-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .tarif-section__head {
        margin: 0 auto 36px;
    }
    .tarif-card {
        padding: 26px 22px 24px;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.88) inset;
    }
    .tarif-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.92) inset;
    }
    .tarif-card--featured {
        padding-top: 40px;
        box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.14),
            0 22px 52px rgba(59, 130, 246, 0.16),
            0 12px 32px rgba(15, 23, 42, 0.07);
    }
    .tarif-card__list {
        gap: 13px;
        margin-bottom: 22px;
    }
    .tarif-card__list li {
        font-size: 0.92rem;
        line-height: 1.48;
        gap: 12px;
    }
    .tarif-card__list i {
        margin-top: 4px;
    }
    .tarif-card__pitch {
        line-height: 1.58;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }
    .tarif-card__cta {
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    .tarif-section {
        padding: clamp(56px, 10vw, 88px) 0;
    }
    .tarif-card__price {
        font-size: clamp(1.95rem, 7vw, 2.45rem);
    }
    .tarif-card__name {
        font-size: 1.08rem;
    }
}

@media (max-width: 480px) {
    .tarif-cards {
        max-width: 100%;
        gap: 18px;
    }
    .tarif-card {
        padding: 24px 18px 22px;
        border-radius: var(--radius-xl);
    }
    .tarif-card--featured {
        padding-top: 38px;
    }
    .tarif-card__ribbon {
        top: 14px;
        right: 14px;
        font-size: 0.62rem;
        padding: 6px 11px;
    }
}

@media (hover: none) {
    .tarif-card:hover {
        transform: none;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.88) inset;
        border-color: rgba(226, 232, 240, 0.95);
    }
    .tarif-card--featured:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tarif-reveal { opacity: 1; transform: none; transition: none; }
    .tarif-card:hover,
    .tarif-card--featured:hover { transform: none; }
    .tarif-card--featured {
        transform: none;
    }
}

/* Homepage footer link under shared cards */
.tarif-section__more {
    text-align: center;
    margin-top: 28px;
}
