/* =====================================================
 * TAONSA Tech — Section "En Vedette" (design premium)
 * Charge ce fichier APRÈS style.css. Préfixe .taonsa-feat-* pour ne rien casser ailleurs.
 * ===================================================== */

.taonsa-featured-section {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(13, 148, 136, 0.06), transparent 60%),
        radial-gradient(800px 500px at 0% 110%, rgba(245, 158, 11, 0.06), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* ---------- Grille / Cards ---------- */
.taonsa-feat-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.taonsa-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(13, 148, 136, 0.18),
                0 8px 16px -8px rgba(15, 23, 42, 0.08);
    border-color: #ccfbf1;
}

/* ---------- Image wrap ---------- */
.taonsa-feat-card-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}
.taonsa-feat-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.taonsa-feat-card:hover .taonsa-feat-card-image {
    transform: scale(1.06);
}

.taonsa-feat-stock-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- Badges (haut-gauche) ---------- */
.taonsa-feat-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.taonsa-feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.taonsa-feat-badge-top {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}
.taonsa-feat-badge-deal {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    animation: taonsa-feat-pulse 1.6s ease-in-out infinite;
}
.taonsa-feat-badge-promo {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.taonsa-feat-badge-vedette {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
@keyframes taonsa-feat-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- Body ---------- */
.taonsa-feat-card-body {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.taonsa-feat-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.taonsa-feat-cat i {
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale (9px sous WCAG min) */
    color: #14b8a6;
}

.taonsa-feat-title {
    font-size: 0.875rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.taonsa-feat-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.taonsa-feat-title a:hover {
    color: #0d9488;
}

/* ---------- Rating ---------- */
.taonsa-feat-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}
.taonsa-feat-stars {
    color: #f59e0b;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    letter-spacing: 1px;
    line-height: 1;
}
.taonsa-feat-rating-num {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}
.taonsa-feat-reviews {
    color: #94a3b8;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}

/* ---------- Prix ---------- */
.taonsa-feat-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
}
.taonsa-feat-price-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.taonsa-feat-price {
    font-size: 1.5rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 900;
    color: #0d9488;
    line-height: 1;
    letter-spacing: -0.5px;
    font-feature-settings: "tnum" on;
}
.taonsa-feat-currency {
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.taonsa-feat-price-old {
    text-align: right;
    line-height: 1.2;
}
.taonsa-feat-strike {
    display: block;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}
.taonsa-feat-saving {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 800;
    color: #16a34a;
    background: #f0fdf4;
    padding: 1px 6px;
    border-radius: 4px;
}

/* ---------- Actions (boutons) ---------- */
.taonsa-feat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.taonsa-feat-btn-cart,
.taonsa-feat-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}
.taonsa-feat-btn-cart {
    background: #ffffff;
    color: #0d9488;
    border: 1.5px solid #ccfbf1;
}
.taonsa-feat-btn-cart:hover {
    background: #f0fdfa;
    border-color: #14b8a6;
}
.taonsa-feat-btn-cart:active {
    transform: scale(0.97);
}
.taonsa-feat-btn-cart i {
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}
.taonsa-feat-btn-cart-success {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

.taonsa-feat-btn-buy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.taonsa-feat-btn-buy:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.taonsa-feat-btn-buy:active {
    transform: scale(0.97);
}
.taonsa-feat-btn-buy i {
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
}

.taonsa-feat-btn-disabled {
    grid-column: span 2;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    font-weight: 700;
    border: 0;
    cursor: not-allowed;
}

/* ---------- Mobile : ajustements ---------- */
@media (max-width: 640px) {
    .taonsa-feat-card-body {
        padding: 12px;
        gap: 8px;
    }
    .taonsa-feat-title {
        font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
        min-height: 2.4em;
    }
    .taonsa-feat-price {
        font-size: 1.125rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    }
    .taonsa-feat-actions {
        gap: 6px;
    }
    .taonsa-feat-btn-cart,
    .taonsa-feat-btn-buy {
        padding: 9px 8px;
        font-size: 0.75rem; /* FIX 2026-05-21 : unifie en rem Tailwind scale */
    }
    .taonsa-feat-btn-cart i,
    .taonsa-feat-btn-buy i {
        display: none; /* gain de place sur très petit écran */
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .taonsa-feat-card,
    .taonsa-feat-card-image,
    .taonsa-feat-btn-buy,
    .taonsa-feat-badge-deal {
        transition: none !important;
        animation: none !important;
    }
}
