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

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

/* ===== FILTRES ===== */
.pport-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}
.pport-filter {
    padding: 9px 22px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #5a6068;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    font-family: inherit;
}
.pport-filter:hover,
.pport-filter.is-active {
    background: var(--pport-accent);
    color: #ffffff;
}

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

/* ===== ITEM ===== */
.pport-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    background: #0f172a;
    transition: transform 0.4s ease;
    aspect-ratio: 4/3;
}
.pport-item.is-hidden { display: none; }

.pport-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.pport-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),
                filter 0.4s ease;
}
.pport-item:hover .pport-image img {
    transform: scale(1.08);
}

.pport-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pport-overlay-inner {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.pport-item:hover .pport-overlay { opacity: 1; }
.pport-item:hover .pport-overlay-inner { transform: translateY(0); }

.pport-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00d9ff;
    margin-bottom: 8px;
}
.pport-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}
.pport-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pport-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--pport-accent);
    color: #fff;
    font-size: 14px;
    transition: transform 0.3s;
}
.pport-item:hover .pport-action { transform: scale(1.1); }

/* ===== VARIANTE 1 : OVERLAY (Equal Grid) ===== */
/* (par défaut) */

/* ===== VARIANTE 2 : MASONRY (hauteurs variables) ===== */
.pport-variant-masonry .pport-item { aspect-ratio: auto; }
.pport-variant-masonry .pport-h-short  { height: 260px; }
.pport-variant-masonry .pport-h-normal { height: 360px; }
.pport-variant-masonry .pport-h-tall   { height: 460px; }
.pport-variant-masonry .pport-h-xtall  { height: 560px; }

.pport-variant-masonry .pport-grid {
    grid-auto-flow: dense;
}

/* ===== VARIANTE 3 : REVEAL (full info au hover, scale image) ===== */
.pport-variant-reveal .pport-item {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.pport-variant-reveal .pport-image img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.5s ease;
    filter: grayscale(20%);
}
.pport-variant-reveal .pport-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 115, 230, 0.5) 50%, rgba(15, 23, 42, 0.95) 100%);
    opacity: 1;
    padding: 30px;
}
.pport-variant-reveal .pport-overlay-inner {
    transform: translateY(calc(100% - 70px));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pport-variant-reveal .pport-desc,
.pport-variant-reveal .pport-action { opacity: 0; transition: opacity 0.3s ease 0.1s; }

.pport-variant-reveal .pport-item:hover .pport-image img {
    filter: grayscale(0%);
    transform: scale(1.1);
}
.pport-variant-reveal .pport-item:hover .pport-overlay-inner {
    transform: translateY(0);
}
.pport-variant-reveal .pport-item:hover .pport-desc,
.pport-variant-reveal .pport-item:hover .pport-action { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pport-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .pport-header-title { font-size: 30px; }
}
@media (max-width: 600px) {
    .pport-grid { grid-template-columns: 1fr !important; }
    .pport-variant-masonry .pport-h-short,
    .pport-variant-masonry .pport-h-normal,
    .pport-variant-masonry .pport-h-tall,
    .pport-variant-masonry .pport-h-xtall { height: auto; aspect-ratio: 4/3; }
    .pport-header-title { font-size: 24px; }
    .pport-title { font-size: 18px; }
}
