/* ── SECTION TARIFS / OFFRES ── */

.svc-plan {
    background: white;
    border: 1px solid var(--sk-bd) !important;
    border-radius: var(--sk-r) !important;
    padding: 2.5rem 2rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
    height: 100%;
    max-width: 380px;
    /* Empêche la carte de devenir trop large sur grand écran */
    min-width: 280px;
    /* Garantit que la carte ne soit pas trop étroite */
    margin-left: auto;
    margin-right: auto;
    /* Centre les cartes si le conteneur est plus large */
}

.svc-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 42px rgba(195, 0, 121, .1);
    border-color: rgba(195, 0, 121, .2);
}

/* Version Populaire / Sombre */
.svc-plan.popular {
    background: var(--sk-nv);
    transform: scale(1.05);
    /* Agrandit la carte de 5% */
    z-index: 10;
    /* S'assure qu'elle passe au-dessus des autres cartes */
    box-shadow: 0 20px 50px rgba(195, 0, 121, 0.15) !important;
    border: 2px solid var(--sk-pk) !important;
    /* Ajoute une bordure rose distinctive */
}

/* On accentue l'effet au survol */
.svc-plan.popular:hover {
    transform: scale(1.07) translateY(-10px);
    box-shadow: 0 30px 60px rgba(195, 0, 121, 0.25) !important;
}

.svc-plan.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--sk-pk-l), transparent);
    animation: simple-glow 3s infinite;
}

@keyframes simple-glow {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* Badge (Widget Titre ou Texte avec classe svc-plan-badge) */
.svc-plan-badge {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    width: auto !important;
    /* Force le badge à ne pas prendre toute la largeur */
    max-width: fit-content !important;
    z-index: 10 !important;
}

/* On cible le texte à l'intérieur du widget (h2, p, span, etc.) */
.svc-plan-badge .elementor-heading-title,
.svc-plan-badge p,
.svc-plan-badge .elementor-widget-container {
    background: var(--sk-pk) !important;
    color: white !important;
    padding: 4px 12px !important;
    /* Ajustement du padding interne */
    border-radius: 1rem !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    /* Supprime les marges qui décalent le badge */
    line-height: 1 !important;
    display: inline-block !important;
    /* Important pour que le fond épouse le texte */
}

.svc-plan-desc {
    font-size: .82rem;
    color: var(--sk-mu);
    line-height: 1.6
}

.svc-plan.popular .svc-plan-desc {
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6
}


/* Typographies */
.svc-plan-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sk-nv);
}

.svc-plan.popular .svc-plan-name {
    color: white;
}

.svc-plan-amount {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--sk-pk);
    line-height: 1;
}

.svc-plan-unit {
    font-size: .78rem;
    color: var(--sk-mu);
}

.svc-plan.popular .svc-plan-unit {
    color: rgba(255, 255, 255, 0.45);
}

/* Liste de caractéristiques (Widget Liste d'icônes) */
.svc-plan-features {
    border-top: 1px solid var(--sk-bd);
    margin-top: 1.5rem !important;
    /* Espace au-dessus du trait */
    padding-top: 1.5rem !important;
    /* Espace EN-DESSOUS du trait (le fameux gap) */
    flex-grow: 1;
    /* Pousse le bouton vers le bas */
}

.svc-plan.popular .svc-plan-features {
    border-color: rgba(255, 255, 255, 0.1);
}

.svc-plan-features .elementor-icon-list-item {
    font-size: .85rem !important;
    color: var(--sk-mu) !important;
    margin-bottom: 8px !important;
}

/* Couleur et taille de l'icône par défaut */
.svc-plan-features .elementor-icon-list-icon {
    display: flex;
    margin-top: 2px;
    /* Aligne l'icône avec la première ligne de texte */
}

/* Cas général (Carte blanche) */
.svc-plan-features .elementor-icon-list-icon svg,
.svc-plan-features .elementor-icon-list-icon svg path {
    fill: var(--sk-pk) !important;
    /* Utilise fill au lieu de color */
    stroke: var(--sk-pk) !important;
    /* Pour certains SVG qui utilisent des contours */
    transition: all 0.3s ease;
}

.svc-plan.popular .svc-plan-features .elementor-icon-list-item {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Cas de la carte populaire (Fond sombre) */
.svc-plan.popular .svc-plan-features .elementor-icon-list-icon svg,
.svc-plan.popular .svc-plan-features .elementor-icon-list-icon svg path {
    fill: var(--sk-pk-l) !important;
    stroke: var(--sk-pk-l) !important;
}

/* Espacement entre l'icône et le texte */
.svc-plan-features .elementor-icon-list-item {
    gap: 12px !important;
    align-items: flex-start !important;
    /* Important si le texte fait plusieurs lignes */
}