/* ===================================================
 * ABCISSE PRODUCT CATEGORIES WIDGET
 * =================================================== */
.pcat-wrapper { --pcat-accent: #0073e6; width: 100%; }
.pcat-container { max-width: 1240px; margin: 0 auto; }

/* HEADER */
.pcat-header { text-align: center; margin-bottom: 40px; }
.pcat-header-supra {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pcat-accent);
    margin-bottom: 12px;
    padding-left: 36px;
    position: relative;
    line-height: 1;
}
.pcat-header-supra::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 2px;
    background: currentColor;
    transform: translateY(-50%);
}
.pcat-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.015em;
}

.pcat-notice {
    text-align: center;
    padding: 40px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
}

/* GRILLE */
.pcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARTE COMMUNE */
.pcat-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pcat-image {
    position: relative;
    overflow: hidden;
}
.pcat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pcat-card:hover .pcat-image img { transform: scale(1.08); }

.pcat-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.pcat-text { flex: 1; }

.pcat-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.pcat-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.pcat-desc {
    font-size: 13px;
    color: #5a6068;
    line-height: 1.5;
    margin-top: 8px;
}

.pcat-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
}
.pcat-arrow svg { width: 18px; height: 18px; }
.pcat-card:hover .pcat-arrow {
    background: var(--pcat-accent);
    transform: scale(1.1) rotate(-45deg);
}

.pcat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--pcat-accent);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: gap 0.3s ease;
}
.pcat-btn i { font-size: 11px; transition: transform 0.3s; }
.pcat-card:hover .pcat-btn { gap: 12px; }
.pcat-card:hover .pcat-btn i { transform: translateX(3px); }


/* ===================================================
 * VARIANTE 1 : OVERLAY (Image grand format avec texte)
 * =================================================== */
.pcat-variant-overlay .pcat-card {
    aspect-ratio: 4/5;
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}
.pcat-variant-overlay .pcat-image {
    position: absolute;
    inset: 0;
}
.pcat-variant-overlay .pcat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
    transition: background 0.4s ease;
}
.pcat-variant-overlay .pcat-card:hover::after {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.95) 100%);
}
.pcat-variant-overlay .pcat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}
.pcat-variant-overlay .pcat-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2); }


/* ===================================================
 * VARIANTE 2 : SIDE-BY-SIDE (Image + contenu horizontal)
 * =================================================== */
.pcat-variant-sidebyside .pcat-card {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: stretch;
    aspect-ratio: auto;
    min-height: 140px;
}
.pcat-variant-sidebyside .pcat-card:hover {
    transform: translateY(-4px);
    border-color: var(--pcat-accent);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}
.pcat-variant-sidebyside .pcat-image {
    height: 100%;
}
.pcat-variant-sidebyside .pcat-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 0;
}
.pcat-variant-sidebyside .pcat-title {
    color: #0f172a;
    font-size: 18px;
}
.pcat-variant-sidebyside .pcat-count {
    color: var(--pcat-accent);
    font-weight: 600;
}
.pcat-variant-sidebyside .pcat-desc { color: #5a6068; }


/* ===================================================
 * VARIANTE 3 : COMPACT (cartes carrées avec gradient subtil)
 * =================================================== */
.pcat-variant-compact .pcat-card {
    aspect-ratio: 1;
    background: #0f172a;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}
.pcat-variant-compact .pcat-image {
    position: absolute;
    inset: 0;
}
.pcat-variant-compact .pcat-image img {
    opacity: 0.55;
    transition: opacity 0.4s ease, transform 0.6s ease;
}
.pcat-variant-compact .pcat-card:hover .pcat-image img {
    opacity: 0.8;
    transform: scale(1.08);
}
.pcat-variant-compact .pcat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 115, 230, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.85;
}
.pcat-variant-compact .pcat-card:hover::after { opacity: 0.75; }
.pcat-variant-compact .pcat-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 22px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.pcat-variant-compact .pcat-title { font-size: 19px; }
.pcat-variant-compact .pcat-count { color: rgba(255, 255, 255, 0.85); }
.pcat-variant-compact .pcat-arrow {
    align-self: flex-end;
    width: 38px; height: 38px;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .pcat-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .pcat-header-title { font-size: 28px; }
}
@media (max-width: 600px) {
    .pcat-grid { grid-template-columns: 1fr !important; }
    .pcat-variant-overlay .pcat-card { aspect-ratio: 16/10; }
    .pcat-variant-sidebyside .pcat-card { grid-template-columns: 100px 1fr; min-height: 100px; }
    .pcat-variant-sidebyside .pcat-content { padding: 14px 18px; }
    .pcat-variant-compact .pcat-card { aspect-ratio: 16/10; }
    .pcat-title { font-size: 18px !important; }
}
