/* Portfolio JNIAX — réutilise la charte CGT Studio */
@import url('/assets/styles/style.css');

/* ——— Page scope ——— */
html:has(body.jniax-page) {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.jniax-page) {
        scroll-behavior: auto;
    }
}

.jniax-section[id] {
    scroll-margin-top: 6.5rem;
}

body.jniax-loading {
    overflow: hidden;
}

body > jniax-header {
    z-index: 2000;
}

.jniax-hero {
    min-height: 88vh;
    padding: 8.5rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jniax-hero__inner {
    max-width: 920px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.jniax-hero__badge {
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
    background: none;
}

.jniax-hero__badge img {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
}

.jniax-hero__name {
    font-family: 'Passion One', sans-serif;
    font-size: clamp(4.5rem, 14vw, 8.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
    background: linear-gradient(135deg, var(--lime) 0%, var(--green) 55%, var(--green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}

.jniax-hero__role {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: 0.18em;
    color: var(--text-body);
    margin-bottom: 1.25rem;
}

.jniax-hero__tagline {
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--text-muted);
}

.jniax-hero__tagline strong {
    color: var(--green-dark);
    font-weight: 800;
}

.jniax-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.jniax-section {
    padding: 4.5rem 2rem;
    position: relative;
}

.jniax-section--about {
    padding-top: 2rem;
}

.jniax-section__inner {
    max-width: 1140px;
    margin: 0 auto;
}

.jniax-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem 3rem;
    align-items: center;
    text-align: left;
}

.jniax-about-card {
    background: var(--bg-elevated);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.jniax-about-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 245, 0, 0.18), transparent 70%);
    pointer-events: none;
}

.jniax-about-card__avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 2px solid rgba(182, 245, 0, 0.35);
    box-shadow: 0 8px 24px rgba(182, 245, 0, 0.25);
}

.jniax-about-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jniax-about-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.jniax-about-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 600;
    font-size: 0.95rem;
}

.jniax-about-copy p {
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.jniax-about-copy p strong {
    color: var(--white);
    font-weight: 800;
}

.jniax-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.jniax-skill {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lime);
    background: rgba(182, 245, 0, 0.08);
    border: 1px solid rgba(182, 245, 0, 0.2);
}

/* Work / portfolio grid */
.jniax-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto 2.25rem;
    max-width: 720px;
}

.jniax-filter {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid rgba(182, 245, 0, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jniax-filter:hover,
.jniax-filter:focus-visible {
    border-color: rgba(182, 245, 0, 0.45);
    color: var(--text-body);
    outline: none;
}

.jniax-filter.is-active {
    background: linear-gradient(135deg, var(--lime), var(--green));
    color: var(--dark);
    border-color: transparent;
    transform: translateY(-2px);
}

.jniax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.jniax-card {
    background: var(--bg-elevated);
    border: 2px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.jniax-card:hover {
    transform: translateY(-6px);
    border-color: rgba(182, 245, 0, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(182, 245, 0, 0.08);
}

.jniax-card.is-hidden {
    display: none;
}

.jniax-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0c0c10;
    position: relative;
}

.jniax-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.jniax-card:hover .jniax-card__media img {
    transform: scale(1.04);
}

.jniax-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.12em;
    color: rgba(182, 245, 0, 0.35);
    background: linear-gradient(145deg, #12161a 0%, #1a2210 50%, #101014 100%);
}

.jniax-card__body {
    padding: 1.15rem 1.25rem 1.35rem;
    text-align: left;
}

.jniax-card__cat {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 0.35rem;
}

.jniax-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.jniax-card__desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 600;
}

/* Services strip */
.jniax-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.jniax-service {
    padding: 1.5rem 1.35rem;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--card-border);
    text-align: left;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.jniax-service:hover {
    border-color: rgba(182, 245, 0, 0.3);
    transform: translateY(-4px);
}

.jniax-service__icon {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1;
}

.jniax-service h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.jniax-service p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 600;
}

/* CTA block */
.jniax-cta-panel {
    padding: 3rem 2rem 5rem;
    text-align: center;
}

.jniax-cta-panel__box {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: var(--bg-elevated);
    border: 2px solid rgba(182, 245, 0, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.jniax-cta-panel h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--lime), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jniax-cta-panel p {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.jniax-studio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jniax-studio-link:hover {
    color: var(--lime);
}

.jniax-studio-link img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Nav brand override for portfolio */
.jniax-nav-brand {
    font-family: 'Passion One', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    text-decoration: none;
    line-height: 1;
}

.jniax-nav-brand span {
    background: linear-gradient(135deg, var(--lime), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 900px) {
    .jniax-about-grid {
        grid-template-columns: 1fr;
    }

    .jniax-hero {
        min-height: auto;
        padding-top: 7.5rem;
    }
}

@media (max-width: 600px) {
    .jniax-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .jniax-grid {
        grid-template-columns: 1fr;
    }
}
