/**
 * Styles du widget Elementor AI Widget Services
 * Fond carte : UNIQUEMENT via le réglage "Fond carte" (Style > Style carte), appliqué en PHP en dynamique — pas de fond défini ici pour éviter tout conflit.
 * Police : réglage "Police de la carte" (Style > Style carte), par défaut Poppins.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.aiws-service-card {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Soulèvement au survol (réglable dans Style carte > Survol) */
.aiws-service-card:hover {
    transform: translateY(calc(-1 * var(--aiws-hover-lift, 0px)));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Barre en haut : couleur réglable dans Style carte > Liseré haut */
.aiws-service-card::before {
    content: "";
    display: block;
    height: 5px;
    background: #ADD8E6;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

/* En-tête : sans fond propre = fond de la carte (--aiws-card-bg). Avec « Fond du bloc en-tête » = --aiws-header-bg. */
.aiws-service-header {
    padding: 24px 20px;
    text-align: center;
    background-color: var(--aiws-header-bg, var(--aiws-card-bg, transparent));
}

.aiws-service-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
    background-color: var(--aiws-icon-bg, transparent);
    width: var(--aiws-icon-size, 48px);
    height: var(--aiws-icon-size, 48px);
}

.aiws-service-icon-wrap .aiws-service-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.aiws-service-icon-wrap i {
    color: var(--aiws-icon-color, #0369a1);
    font-size: var(--aiws-icon-size, 48px);
    line-height: 1;
}

/* Icône en dessous du titre : marge au-dessus */
.aiws-service-icon-wrap--below {
    margin-top: 12px;
    margin-bottom: 0;
}

.aiws-service-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
}

.aiws-service-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #666666;
}

/* ---------- Ruban « Populaire » (coin) : même structure et logique qu'Elementor ---------- */
.aiws-ribbon {
    height: 150px;
    width: 150px;
    position: absolute;
    top: 0;
    left: auto;
    overflow: hidden;
    transform: rotate(90deg);
    z-index: 10;
}

.aiws-ribbon.aiws-ribbon-right {
    left: auto;
    right: 0;
    transform: rotate(90deg);
}

.aiws-ribbon-inner {
    position: relative;
    left: 0;
    width: 200%;
    margin-top: 35px;
    padding: 0.25em 0;
    text-align: center;
    text-transform: uppercase;
    line-height: 2;
    font-size: 19px;
    font-weight: 600;
    background-color: #FFE600;
    color: #000000;
    transform: translateY(-50%) translateX(-50%) translateX(35px) rotate(-45deg);
    box-sizing: border-box;
}

.aiws-service-pricing {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
}

.aiws-price-original {
    display: block;
    text-decoration: line-through;
    color: #888888;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* Prix principal : très grand, gras, bleu foncé header #1A50A1 */
.aiws-price-current {
    font-size: 3.25rem;
    font-weight: 700;
    color: #1A50A1;
    display: inline-block;
    line-height: 1.1;
}

.aiws-price-period {
    font-size: 0.95rem;
    color: #666666;
    margin-left: 4px;
}

.aiws-price-period .aiws-currency {
    color: #1A50A1;
    font-size: 1.1rem;
}

/* Liste : pas de fond propre → pilotée par le fond de la carte (Style > Fond carte). */
.aiws-features-list {
    list-style: none;
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
}

/* Structure type Elementor : .elementor-price-table__feature-inner avec SVG + span */
.aiws-features-list .elementor-price-table__feature-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wrapper icône liste : permet un fond piloté par le picker (Style > Icônes liste) */
.aiws-features-list .aiws-feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    padding: 2px;
}

.aiws-features-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #333333;
}

/* Couleurs des icônes : 100 % pilotées par Style > Icônes liste (picker). Aucune couleur en dur. */
.aiws-features-list .elementor-price-table__feature-inner .e-fas-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.aiws-features-list .elementor-price-table__feature-inner .e-fas-times {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.aiws-feature.aiws-feature-cross .elementor-price-table__feature-inner span {
    color: #888888;
    text-decoration: line-through;
}

.aiws-service-footer {
    padding: 20px;
    text-align: center;
    background: transparent;
    border-radius: 0 0 12px 12px;
}

/* Bouton : couleurs 100 % pilotées par Style > Bouton (picker). Largeur pilotée par le curseur « Largeur du bouton ». */
.aiws-service-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: opacity 0.2s;
    border: none;
    box-sizing: border-box;
    transform-origin: center;
}

.aiws-service-btn--no-link {
    cursor: default;
    opacity: 0.85;
}

/* Animation au survol : pulsation. Durée réglable dans Style > Bouton > Vitesse animation (survol). */
@keyframes aiws-btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.aiws-service-btn:hover {
    opacity: 1;
    animation: aiws-btn-pulse var(--aiws-btn-animation-duration, 0.6s) ease-in-out infinite;
}

/* Carte Populaire : surcharge visuelle optionnelle (bouton jaune). */
.aiws-service-card.aiws-service-card--popular .aiws-service-btn {
    background-color: #FFD700 !important;
    color: #000000 !important;
}

.aiws-service-card.aiws-service-card--popular .aiws-service-btn:hover {
    color: #000000 !important;
    opacity: 1;
    animation: aiws-btn-pulse var(--aiws-btn-animation-duration, 0.6s) ease-in-out infinite;
}

.aiws-paypal-badge {
    margin: 12px 0 0 0;
    font-size: 0.8rem;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aiws-paypal-badge img {
    vertical-align: middle;
}
