/**
 * Styles — Grille tarifaire homepage [digikoder_homepage_pricing]
 * Géométrie Sacrée : phi=1.618, Fibonacci spacings, Silver=1.414
 * Palette : variables CSS héritées du thème Astra Child
 */

/* ============================================================
   GRILLE PRINCIPALE
   ============================================================ */
.dgk-homepage-pricing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 21px; /* --sp-21 */
    align-items: start;
    width: 100%;
}

/* ============================================================
   CARD
   ============================================================ */
.dgk-pricing-card {
    background: #d1d1d1;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 13px; /* --radius-md */
    padding: 34px; /* --sp-34 */
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 680px;
}

.dgk-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* Card Pro — featured */
.dgk-pricing-card--featured {
    border-color: #D4634A;
    box-shadow: 0 4px 40px rgba(212,99,74,0.15);
    transform: scale(1.04);
    z-index: 2;
}

.dgk-pricing-card--featured:hover {
    transform: scale(1.04) translateY(-4px);
}

/* ============================================================
   BADGES
   ============================================================ */
.dgk-pricing-badge {
    position: absolute;
    top: -13px; /* --sp-13 négatif */
    left: 50%;
    transform: translateX(-50%);
    background: #D4634A;
    color: #FFFFFF;
    font-size: 13px; /* --font-xs */
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 8px; /* --radius-sm */
    white-space: nowrap;
    line-height: 1.4;
}

/* Badge essai — plus proéminent, couleur accent-tertiary */
.dgk-pricing-badge-trial {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #0891B2; /* accent-tertiary */
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 21px; /* légèrement plus grand */
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(8,145,178,0.30);
    line-height: 1.4;
}

/* ============================================================
   EN-TÊTE PLAN
   ============================================================ */
.dgk-pricing-plan {
    font-size: 13px; /* --font-xs */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9CA3AF; /* text-muted */
    margin-top: 21px; /* espace sous le badge */
    margin-bottom: 8px; /* --sp-8 */
}

/* ============================================================
   PRIX
   ============================================================ */
.dgk-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.dgk-pricing-amount {
    font-size: 42px; /* --font-title */
    font-weight: 800;
    letter-spacing: -1px;
    color: #111827; /* text-primary */
    line-height: 1;
}

.dgk-pricing-currency {
    font-size: 26px; /* --font-subtitle */
    font-weight: 700;
    color: #111827;
}

.dgk-pricing-period {
    font-size: 16px; /* --font-body */
    color: #9CA3AF;
}

/* ============================================================
   LISTE DE FEATURES
   ============================================================ */
.dgk-pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px; /* --sp-13 */
    margin: 21px 0 34px; /* --sp-21 haut, --sp-34 bas */
    flex: 1; /* pousse le CTA en bas */
}

.dgk-pricing-features li {
    font-size: 16px; /* --font-body */
    color: #4B5563; /* text-secondary */
    display: flex;
    align-items: flex-start;
    gap: 8px; /* --sp-8 */
    line-height: 1.5;
}

.dgk-pricing-features li::before {
    content: '\2713';
    color: #0891B2; /* accent-tertiary */
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Feature désactivée */
 

.dgk-pricing-features li.dgk-feat-no::before {
    content: '\2715';
    color: #9CA3AF;
}

/* ============================================================
   NOTE SOUS CTA
   ============================================================ */
.dgk-pricing-note {
    font-size: 13px;
    color: #484848;
    text-align: center;
    margin-top: 8px; /* --sp-8 */
    line-height: 1.5;
}

/* ============================================================
   BOUTONS CTA
   ============================================================ */
.dgk-btn-full {
    width: 100%;
    text-align: center;
    display: block;
    padding: 13px 21px; /* --sp-13 --sp-21 */
    border-radius: 8px; /* --radius-sm */
    font-weight: 600;
    font-size: 16px; /* --font-body */
    min-height: 44px; /* --touch-min */
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Bouton primaire — accent */
.dgk-btn-primary {
    background: #D4634A;
    color: #FFFFFF;
    border: none;
    font-weight: 700;
}

.dgk-btn-primary:hover {
    background: #C0523A;
    color: #FFFFFF;
}

/* Bouton outline — neutre (Gratuit) */
.dgk-btn-outline {
    background: transparent;
    color: #4B5563;
    border: 2px solid rgba(0,0,0,0.12);
}

.dgk-btn-outline:hover {
    border-color: #D4634A;
    color: #D4634A;
}

/* ============================================================
   STRUCTURE .ptsColFooter (contrat JS funnel)
   ============================================================ */
.ptsColFooter {
    width: 100%;
}

.ptsColFooter .ptsTog {
    width: 100%;
}

.ptsColFooter .ptsTog .ptsActBtn {
    width: 100%;
}

/* ============================================================
   RESPONSIVE — TABLET 2x2 (@media 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .dgk-homepage-pricing {
        grid-template-columns: repeat(2, 1fr);
        gap: 21px;
    }

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

    .dgk-pricing-card--featured:hover {
        transform: translateY(-4px);
    }
}

/* ============================================================
   RESPONSIVE — TABLET @media 768px
   ============================================================ */
@media (max-width: 768px) {
    .dgk-homepage-pricing {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px; /* --sp-13 */
    }

    .dgk-pricing-card {
        padding: 21px; /* --sp-21 */
    }

    .dgk-pricing-amount {
        font-size: 34px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE stack (@media 480px) — Pro en premier
   ============================================================ */
@media (max-width: 480px) {
    .dgk-homepage-pricing {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    /* Pro (featured) en premier sur mobile */
    .dgk-pricing-card--featured {
        order: -1;
        transform: none;
    }

    .dgk-pricing-card--featured:hover {
        transform: translateY(-4px);
    }

    .dgk-pricing-amount {
        font-size: 42px;
    }
}
