/* ----- Page Hero ----- */
.hero-section {
    overflow: visible;
    position: relative;
    padding-bottom: 0;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(197, 168, 128, .04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(197, 168, 128, .04) 1px, transparent 1px);
        background-size: 60px 60px;
    }

    & .container {
        grid-template-columns: 1fr 2fr;
        position: relative;
    }

    & .section-title [data-lang="en"] {
        display: inline-block;
        max-width: 23ch;
    }
}

.hero-orb-1 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(197, 168, 128, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* ── Portfolio-specific styles ── */
.portfolio-hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding-block: 12px 36px;
}

.stat-block .stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    display: block;
}

.stat-block .stat-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 5px;
}

/* Filter bar */
.portfolio-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid rgba(197, 168, 128, 0.35);
    background: transparent;
    color: var(--text-primary);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn i {
    display: none;
    font-size: 0.95em;
    pointer-events: none;
}

.filter-btn.active i {
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.clear-filters-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(13, 27, 42, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: auto;
}

.portfolio-filters.has-filters .clear-filters-btn {
    display: flex;
}

.clear-filters-btn:hover {
    background: rgba(253, 77, 36, 0.1);
    color: #c13a10;
}

/* Deal grid */
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

/* Deal card */
.deal-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 12px;
    padding: 26px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.10), 0 2px 8px rgba(13, 27, 42, 0.05);
    border-color: rgba(232, 197, 106, 0.35);
}

.deal-card.hidden {
    display: none;
}

.deal-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.deal-card.has-link:hover .deal-card__overlay {
    opacity: 1;
    visibility: visible;
}

.deal-card__overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.deal-card.has-link:hover .deal-card__overlay-content {
    transform: translateY(0);
}

.deal-card__overlay-content i {
    font-size: 1.4rem;
}

/* Meta row */
.deal-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.deal-date {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-top: 2px;
}


.deal-card__client-logo {
    height: 48px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.deal-card__client-logo img {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
}

/* Role badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.role-badge.agent-placeur {
    background: rgba(13, 27, 42, 0.07);
    color: var(--primary-color);
    border: 1px solid rgba(13, 27, 42, 0.14);
}

.role-badge.conseil-financier {
    background: rgba(197, 168, 128, 0.14);
    color: #8a6c2a;
    border: 1px solid rgba(197, 168, 128, 0.28);
}

.role-badge.arrangeur {
    background: rgba(253, 77, 36, 0.09);
    color: #c13a10;
    border: 1px solid rgba(253, 77, 36, 0.2);
}

.role-badge.conseil-agent {
    background: rgba(30, 90, 150, 0.09);
    color: #1a5276;
    border: 1px solid rgba(30, 90, 150, 0.18);
}

.deal-card__client {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.5;
    margin: 0;
}

.deal-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

/* Amount footer */
.deal-card__amount {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(197, 168, 128, 0.18);
}

.deal-card__amount i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.deal-card__amount .amount-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.deal-card__amount .amount-currency {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.deal-card__no-amount {
    padding-top: 14px;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
}

/* Card enter animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.deal-card.animate-in {
    animation: cardFadeIn 0.42s ease forwards;
}

/* Total banner */
.portfolio-total-banner {
    border-radius: 16px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 52px;
    position: relative;
    overflow: hidden;
}

.portfolio-total-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.07);
}

.banner-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.banner-total {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.banner-total span {
    color: var(--accent-gold);
}

.banner-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
}

.banner-icon {
    font-size: 5rem;
    color: rgba(197, 168, 128, 0.22);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .deal-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-hero-stats {
        gap: 28px;
    }

    .stat-block .stat-number {
        font-size: 2rem;
    }

    .portfolio-total-banner {
        padding: 28px;
    }

    .banner-total {
        font-size: 2rem;
    }

    .banner-icon {
        display: none;
    }
}

/* Portfolio CTA Section */
.portfolio-cta-section {
    padding: 72px 0;
    text-align: center;
}

.portfolio-cta-container {
    max-width: 580px;
}

.portfolio-cta-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.portfolio-cta-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.portfolio-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-portfolio-cta {
    padding: 14px 32px;
}

/* Value modifiers */
.val-mds {
    font-size: 1.5rem;
    opacity: .65;
}

.val-mds-lg {
    font-size: 1.6rem;
    opacity: .65;
}

/* Ongoing Deal Badge */
.ongoing-deal {
    border: 1.5px solid rgba(197, 168, 128, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.15);
}

.ongoing-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 168, 128, 0.15);
    color: #8a6c2a;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(197, 168, 128, 0.4);
    margin-bottom: -6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #8a6c2a;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: rgba(138, 108, 42, 0.5);
    animation: pulse 1.5s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}