/* =============================================
   RESET & VARIABLES
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #573280;
    --primary-light: #7d44be;
    --primary-lighter: #a661f5;
    --bg-dark: #1e1a1c;
    --bg-mid: #252028;
    --bg-light: #EFEBE2;
    --text-light: #EFEBE2;
    --text-dark: #1e1a1c;
    --shadow: rgba(0, 0, 0, 0.4);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Le background-2 est posé sur le body — il reste fixe derrière tout */
body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    color: var(--text-light);
    background:
        url('./images/background-2.webp') center/cover no-repeat fixed;
    background-color: var(--bg-dark);
}

/* =============================================
   LOADING
   ============================================= */
.loading {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(166, 97, 245, 0.2);
    border-top-color: var(--primary-lighter);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   NAVIGATION
   ============================================= */

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(30, 26, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(166, 97, 245, 0.15);
    border-radius: 0;
    padding: 0.85rem 2rem;
    gap: 1rem;
    transition:
        border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

/* --- État scrolled --- */
.navigation.scrolled {
    top: 1.25rem;
    left: 1.5rem;
    right: 1.5rem;
}

.navigation.scrolled .nav-container {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(30, 26, 28, 0.92);
    border-bottom: none;
    border: 1px solid rgba(166, 97, 245, 0.25);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navigation.scrolled .nav-separator,
.navigation.scrolled .nav-socials,
.navigation.scrolled .nav-cv-wrap {
    display: none;
}

.navigation.scrolled .nav-cv-scrolled {
    display: flex;
    align-items: center;
}

/* Colonne gauche */
.nav-menu--left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem;
}

/* Logo centré */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    display: block;
    mix-blend-mode: screen;
    transition: var(--transition);
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 10px rgba(166, 97, 245, 0.8));
    transform: rotate(15deg) scale(1.1);
}

/* Colonne droite */
.nav-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}

.nav-menu--right {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-right: 0;
}

.nav-cv-scrolled {
    display: none;
}

/* Liens */
.nav-menu {
    font-family: 'Bebas Neue';
    list-style: none;
    font-size: 1.1rem;
    letter-spacing: 0.07em;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1;
    padding-bottom: 2px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-lighter);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-lighter);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Séparateur */
.nav-separator {
    width: 1px;
    height: 20px;
    background: rgba(166, 97, 245, 0.25);
    flex-shrink: 0;
}

/* Icônes réseaux */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-socials a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(166, 97, 245, 0.1);
    border: 1px solid rgba(166, 97, 245, 0.2);
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(87, 50, 128, 0.45);
}

.nav-socials img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.nav-socials a:hover img {
    opacity: 1;
}

/* Bouton CV */
.nav-cv-wrap {
    flex-shrink: 0;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(166, 97, 245, 0.2);
}

.nav-cv {
    display: flex;
    align-items: center;
    padding: 0.8rem 0.8rem !important;
    background: var(--primary);
    border-radius: 18px;
    color: var(--text-light) !important;
    font-family: 'Roboto';
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    font-weight: 380;
    line-height: 1;
    transition: var(--transition);
    text-decoration: none;
}

.nav-cv:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
}

.nav-cv::after {
    display: none !important;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    .navigation.scrolled {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .nav-menu--left,
    .nav-menu--right {
        display: none;
    }

    .nav-socials,
    .nav-separator,
    .nav-cv-wrap {
        display: none !important;
    }

    .nav-container {
        padding: 0.65rem 0.65rem 0.65rem 1.25rem;
        grid-template-columns: auto 1fr auto;
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 7px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
    }

    .nav-menu.mobile-open {
        display: flex !important;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        background: rgba(30, 26, 28, 0.97);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(166, 97, 245, 0.25);
        border-radius: 20px;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        animation: dropDown 0.3s ease;
    }

    @keyframes dropDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

/* =============================================
   HERO —
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./images/background-1.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 26, 28, 0.75) 0%, rgba(30, 26, 28, 0.4) 60%, rgba(30, 26, 28, 0.65) 100%);
}

.hero-bg-logo img {
    width: 100%;
    height: auto;
    filter: brightness(10);
}

@keyframes bgLogoFloat {

    0%,
    100% {
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(-52%) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Bebas Neue';
    font-size: clamp(5rem, 14vw, 12rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    background: linear-gradient(145deg, #EFEBE2 30%, #a661f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.4s;
}

.hero-sub {
    font-size: clamp(1.3rem, 2vw, 2.6rem);
    opacity: 0;
    margin-top: 1.25rem;
    letter-spacing: 0.08em;
    animation: fadeUp 0.9s ease forwards 0.65s;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.85s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-button.primary {
    background: var(--primary);
    border: 2px solid transparent;
}

.cta-button.primary:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(87, 50, 128, 0.55);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid rgba(166, 97, 245, 0.6);
    backdrop-filter: blur(8px);
}

.cta-button.secondary:hover {
    border-color: var(--primary-lighter);
    background: rgba(166, 97, 245, 0.12);
    transform: translateY(-4px);
}

/* =============================================
   SECTIONS COMMUNES
   ============================================= */
section {
    padding: 7rem 2rem;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-family: 'Bebas Neue';
    font-size: 6.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    border-radius: 2px;
}

/* =============================================
   ABOUT — fond transparent : laisse voir background-2 du body
   ============================================= */
#about {
    position: relative;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(87, 50, 128, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(166, 97, 245, 0.1) 0%, transparent 45%),
        rgba(30, 26, 28, 0.55);
    /* voile semi-transparent pour la lisibilité */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-name {
    font-family: 'Bebas Neue';
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--text-light);
    /* ← était var(--primary-lighter) */
    line-height: 1;
    margin-bottom: 0.3rem;
}

.about-role {
    font-size: 0.8rem;
    opacity: 0.45;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.about-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: 2.5rem;
}

.about-stat-num {
    font-family: 'Bebas Neue';
    font-size: 1.4rem;
    color: var(--primary-lighter);
    line-height: 1;
    min-height: 1.5em;
    display: block;
}

.typing-text {
    font-size: 1.3rem;
    line-height: 1.75;
    opacity: 0.95;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary-lighter);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-stat {
    background: rgba(166, 97, 245, 0.08);
    border: 1px solid rgba(166, 97, 245, 0.2);
    border-radius: 14px;
    padding: 1.1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition);
}

.about-stat:hover {
    background: rgba(166, 97, 245, 0.15);
    border-color: rgba(166, 97, 245, 0.45);
    transform: translateY(-3px);
}

.about-stat-num {
    font-family: 'Bebas Neue';
    font-size: 2.4rem;
    color: var(--primary-lighter);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.72rem;
    opacity: 0.55;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.badges-container {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 2px solid var(--primary);
    color: var(--text-light);
    background: transparent;
    transition: var(--transition);
}

.badge:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.about-image-container {
    position: relative;
}

.about-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    pointer-events: none;
    opacity: 0.06;
    z-index: 0;
}

.about-bg-logo img {
    width: 100%;
    height: auto;
    filter: brightness(10);
}

.about-image {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 20px;
    display: block;
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.02);
}

.about-dispo {
    position: absolute;
    bottom: -1rem;
    left: -1.5rem;
    z-index: 2;
    background: var(--bg-mid);
    border: 1px solid rgba(166, 97, 245, 0.35);
    border-radius: 14px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dispo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5DCAA5;
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.35);
        opacity: 0.6
    }
}

.dispo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dispo-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-light);
}

.dispo-text span {
    font-size: 0.76rem;
    opacity: 0.65;
}

/* =============================================
   COMPÉTENCES — fond opaque qui cache background-2
   ============================================= */
#competences {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(87, 50, 128, 0.2) 0%, transparent 60%),
        var(--bg-dark);
}

.tabs-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.85rem 2.5rem;
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(166, 97, 245, 0.35);
    border-radius: 50px;
    font-family: 'Roboto';
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(87, 50, 128, 0.45);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

/* Carte : même mécanique que influence-card */
.competence-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/4;
    cursor: pointer;
    border: 1px solid rgba(166, 97, 245, 0.15);
    background: var(--bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Label au repos — icône grande + titre centré */
.competence-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.competence-label h3 {
    font-family: 'Bebas Neue';
    font-size: 1.7rem;
    color: var(--primary-lighter);
    text-align: center;
}

.competence-card:hover .competence-label {
    opacity: 0;
}

/* Icône grande au repos */
.competence-label .competence-icon-small {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    /* émojis à la même taille visuelle que les images */
}

.competence-label .competence-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Overlay hover */
.competence-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(87, 50, 128, 0.97) 0%, rgba(30, 20, 50, 0.97) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.75rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.competence-card:hover .competence-overlay {
    opacity: 1;
}

.competence-overlay h3 {
    font-family: 'Bebas Neue';
    font-size: 1.6rem;
    color: var(--text-light);
}

.competence-overlay p {
    font-size: 0.88rem;
    line-height: 1.65;
    opacity: 0.88;
}

/* Icône petite format */
.competence-icon-small {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.competence-icon-small img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

/* =============================================
   INFLUENCES 
   ============================================= */
#influences {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(87, 50, 128, 0.2) 0%, transparent 55%),
        rgba(30, 26, 28, 0.55);
    /* même voile que about */
}

/* Logo tournant */
.influence-bg-logo {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 55vw;
    max-width: 700px;
    pointer-events: none;
    opacity: 0.8;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    z-index: 0;
}

.influence-bg-logo img {
    width: 100%;
    height: auto;
}

.influences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.influence-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    display: flex;
}

.influence-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.influence-card:hover .influence-image {
    transform: scale(1.08);
}

.influence-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(30, 26, 28, 0.92) 0%, transparent 100%);
    transition: opacity 0.3s ease;
    z-index: 2;
}

.influence-label h3 {
    font-family: 'Bebas Neue';
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 0.15rem;
}

.influence-label span {
    font-size: 0.75rem;
    opacity: 0.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.influence-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(87, 50, 128, 0.97) 0%, rgba(30, 20, 50, 0.97) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.influence-card:hover .influence-overlay {
    opacity: 1;
}

.influence-card:hover .influence-label {
    opacity: 0;
}

.influence-overlay h3 {
    font-family: 'Bebas Neue';
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.influence-sub {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-lighter);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.influence-overlay p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.88;
}

/* =============================================
   GALERIE — fond opaque qui cache background-2
   ============================================= */
#galerie {
    background:
        radial-gradient(ellipse at 80% 30%, rgba(87, 50, 128, 0.18) 0%, transparent 55%),
        var(--bg-dark);
}

.projects-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.75rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(166, 97, 245, 0.3);
    border-radius: 50px;
    font-family: 'Roboto';
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(87, 50, 128, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(166, 97, 245, 0.15);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(166, 97, 245, 0.45);
    box-shadow: 0 22px 55px rgba(87, 50, 128, 0.35);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    position: absolute;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(87, 50, 128, 0.94), rgba(166, 97, 245, 0.88));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-cta {
    font-family: 'Bebas Neue';
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 0.08em;
}

.project-info {
    padding: 1.25rem;
}

.project-info h3 {
    font-family: 'Bebas Neue';
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.project-info>p {
    opacity: 0.65;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =============================================
   CONTACT — fond opaque
   ============================================= */
#contact {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(87, 50, 128, 0.25) 0%, transparent 60%),
        var(--bg-dark);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 4rem;
}

/* Layout deux colonnes */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-block-title {
    font-family: 'Bebas Neue';
    font-size: 1.6rem;
    color: var(--primary-lighter);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* Formulaire */
.contact-form-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(166, 97, 245, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: 'Bebas Neue';
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(166, 97, 245, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-family: 'Roboto';
    font-size: 0.95rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-lighter);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-family: 'Roboto';
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(87, 50, 128, 0.45);
}

/* Réseaux sociaux */
.contact-socials-block {
    display: flex;
    flex-direction: column;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-social-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(166, 97, 245, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(87, 50, 128, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-social-card:hover::before {
    opacity: 1;
}

.contact-social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(166, 97, 245, 0.5);
    box-shadow: 0 16px 40px rgba(87, 50, 128, 0.35);
}

.contact-social-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-social-card:hover .contact-social-icon {
    background: var(--primary-light);
    transform: scale(1.08) rotate(5deg);
}

.contact-social-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.contact-social-info {
    flex: 1;
}

.contact-social-info h4 {
    font-family: 'Bebas Neue';
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.03em;
}

.contact-social-info p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.contact-social-arrow {
    font-size: 1.5rem;
    color: var(--primary-lighter);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
}

.contact-social-card:hover .contact-social-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

footer {
    background: black;
    border-top: 1px solid rgba(166, 97, 245, 0.2);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Colonne marque */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-name {
    font-family: 'Bebas Neue';
    font-size: 6.5rem;
    color: var(--text-light);
    line-height: 1;
}

/* Titres colonnes */
.footer-col-title {
    font-family: 'Bebas Neue';
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--primary-lighter);
    margin-bottom: 1.25rem;
}

/* Listes */
.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a,
.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-nav a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--primary-lighter);
}

.footer-contact img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    flex-shrink: 0;
}

.footer-contact a:hover img {
    opacity: 1;
}

/* Barre basse */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem 2rem;
    }
}

/* =============================================
   ANIMATIONS AU SCROLL
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }

    .hero h1 {
        font-size: clamp(4rem, 18vw, 7rem);
    }

    .hero-bg-logo {
        width: 85vw;
        right: -10%;
        opacity: 0.03;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .influence-card {
        aspect-ratio: 3/2;
    }

    .competences-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

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

    .influence-card {
        aspect-ratio: 3/2;
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 1rem;
    }

    .about-stats {
        gap: 0.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    .about-dispo {
        left: 0;
        bottom: -0.5rem;
    }
}

/* =============================================
   PAGE PROJET — navigation identique à l'index
   ============================================= */

body.page-projet-body {
    background:
        radial-gradient(ellipse at 70% 10%, rgba(87, 50, 128, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 90%, rgba(166, 97, 245, 0.12) 0%, transparent 50%),
        url('./images/background-2.webp') center/cover no-repeat fixed;
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.projet {
    display: none;
}

.projet.actif {
    display: block;
}

.pj-nav .nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(30, 26, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(166, 97, 245, 0.15);
    border-radius: 0;
    padding: 0.85rem 2rem;
    gap: 1rem;
    letter-spacing: 0.1rem;
}

.pj-nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pj-nav-link {
    font-family: 'Bebas Neue';
    font-size: 1.1rem;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pj-nav-link:hover {
    color: var(--primary-lighter);
}

.pj-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.pj-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pj-nav-arrow:hover {
    background: rgba(166, 97, 245, 0.15);
    border-color: rgba(166, 97, 245, 0.4);
    color: var(--primary-lighter);
}

.pj-nav-counter {
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    min-width: 36px;
    text-align: center;
}

/* Masquer le burger sur la nav projet desktop */
.pj-nav .burger {
    display: none;
}

@media (max-width: 600px) {
    .pj-nav .nav-container {
        padding: 0 1.25rem;
        max-width: 100%;
    }

    .pj-nav-left {
        gap: 1.25rem;
    }

    .pj-nav-link {
        font-size: 0.7rem;
    }
}


/* ── Hero plein écran ── */
.pj-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.pj-hero-img-wrap {
    position: absolute;
    inset: 0;
}

.pj-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    display: block;
}

.pj-hero-img-wrap:hover .pj-hero-img {
    transform: scale(1.04);
}

/* Hero assombri — gradient plus opaque */
.pj-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 12, 16, 0.98) 0%, rgba(14, 12, 16, 0.72) 45%, rgba(14, 12, 16, 0.35) 100%);
    pointer-events: none;
}

.pj-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 0 4rem 3.5rem;
    width: 100%;
}

.pj-hero-meta {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
}

.pj-hero-tag {
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-lighter);
}

.pj-hero-tag+.pj-hero-tag::before {
    content: '·';
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.pj-hero-title {
    font-family: 'Bebas Neue';
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    color: var(--text-light);
    margin: 0;
    letter-spacing: 0.01em;
}


/* ── Layout principal ── */
.pj-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem 8rem;
}

/* ── Réalisation finale — dans la colonne principale ── */
.pj-rendu {
    padding: 0 0 2.5rem;
    margin-bottom: 0;
}

.pj-rendu-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-rendu-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(166, 97, 245, 0.2);
}

/* ── Grille réalisation finale ── */
/* Par défaut : 1 colonne */
.pj-rendu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: start;
}

/* 1 image seule : centrée */
.pj-rendu-grid .pj-media-item:only-child {
    justify-self: center;
    width: 100%;
    max-width: 520px;
}

/* 2 images : côte à côte */
.pj-rendu-grid:has(.pj-media-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 images : 3 colonnes égales */
.pj-rendu-grid:has(.pj-media-item:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
}

/* Conteneur image : colle à la taille naturelle de l'image, pas de hover */
.pj-rendu-grid .pj-media-item.pj-media-img {
    width: 100%;
    display: block;
    border-radius: 8px;
    background: transparent;
    transform: none !important;
    box-shadow: none !important;
    cursor: zoom-in;
}

.pj-rendu-grid .pj-media-item.pj-media-img:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Image : pleine largeur, hauteur auto — jamais déformée */
.pj-rendu-grid .pj-media-item.pj-media-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
    transition: none;
}

.pj-rendu-grid .pj-media-item.pj-media-img:hover img {
    transform: none;
}

.pj-rendu-grid .pj-media-youtube {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.pj-rendu-grid .pj-media-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Conservé pour rétrocompat si besoin */
.pj-rendu-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.pj-rendu-media img {
    width: 100%;
    height: auto;
    display: block;
}

.pj-media-video-square {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.pj-media-video-square video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

.pj-rendu-media video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #000;
}

.pj-rendu-media-youtube {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.pj-rendu-media-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Grille : textes + aside ── */
.pj-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    align-items: start;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3.5rem;
}

.pj-col-main {
    padding: 4rem 5rem 4rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Sections ── */
.pj-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    margin-bottom: 3.5rem;
}

.pj-section.pj-visible {
    opacity: 1;
    transform: translateY(0);
}

.pj-card {
    background: transparent;
    border: none;
    padding: 0;
}

.pj-card-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-card-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(166, 97, 245, 0.2);
}

/* ── Présentation — style éditorial ── */
.pj-section-presentation {
    padding: 2.5rem 3rem;
    background: rgba(166, 97, 245, 0.04);
    border: 1px solid rgba(166, 97, 245, 0.12);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.pj-section-presentation .pj-card-label {
    color: rgba(166, 97, 245, 0.6);
    border-bottom-color: rgba(166, 97, 245, 0.15);
}

.pj-section-presentation .pj-card-label::after {
    background: rgba(166, 97, 245, 0.2);
}

.pj-section-presentation .pj-text p:first-child {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.85;
    font-weight: 400;
}

.pj-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
}

.pj-text p+p {
    margin-top: 1.2rem;
}

/* Réflexion */
.pj-section-reflexion {
    padding: 2.5rem 3rem;
    background: rgba(166, 97, 245, 0.04);
    border: 1px solid rgba(166, 97, 245, 0.12);
    border-left: 4px solid rgba(166, 97, 245, 0.5);
    border-radius: 0 12px 12px 0;
}

.pj-section-reflexion .pj-card-label {
    color: rgba(166, 97, 245, 0.6);
    border-bottom-color: rgba(166, 97, 245, 0.15);
}

.pj-section-reflexion .pj-card-label::after {
    background: rgba(166, 97, 245, 0.2);
}

.pj-section-reflexion .pj-text p:first-child {
    font-size: 1.25rem;
    color: white;
    line-height: 1.85;
    font-weight: 400;
    font-style: italic;
}

.pj-section-reflexion .pj-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .pj-section-reflexion {
        padding: 1.75rem 1.5rem;
    }
}

/* ── Banque d'images ── */
.pj-medias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.pj-medias-grid:has(.pj-media-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 560px;
}

.pj-medias-grid:has(.pj-media-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.pj-media-item {
    border-radius: 8px;
    overflow: hidden;
}

.pj-media-img {
    cursor: zoom-in;
    width: 100%;
    border-radius: 8px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
    display: block;
}

.pj-media-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(87, 50, 128, 0.45);
}

.pj-media-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.pj-media-img:hover img {
    transform: scale(1.03);
}

.pj-media-youtube {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.pj-media-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pj-media-video {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.pj-media-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ── Colonne latérale ── */
.pj-col-aside {
    padding: 4rem 0 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 80px;
}

.pj-aside-card {
    background: transparent;
    border: none;
    padding: 0 0 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pj-aside-card:last-of-type {
    border-bottom: none;
}

.pj-aside-card .pj-card-label {
    font-size: 0.68rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
}

.pj-aside-info .pj-info-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.pj-aside-contexte .pj-info-value {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

.pj-outils-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pj-outils-list li {
    padding: 0.4rem 0.9rem;
    background: rgba(166, 97, 245, 0.12);
    border: 1px solid rgba(166, 97, 245, 0.25);
    color: var(--primary-lighter);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Navigation prev/next (aside) */
.pj-aside-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.pj-aside-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.pj-aside-nav-btn:hover {
    background: rgba(166, 97, 245, 0.15);
    border-color: rgba(166, 97, 245, 0.4);
    color: var(--text-light);
}

.pj-aside-nav-btn span {
    color: var(--primary-lighter);
}

.pj-back-gallery {
    display: block;
    text-align: center;
    padding: 0.9rem;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
}

.pj-back-gallery:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(87, 50, 128, 0.45);
}


/* ── Navigation bas de page ── */
.pj-bottom-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pj-bottom-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.pj-bottom-nav-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Roboto', sans-serif;
    min-width: 0;
}

.pj-bottom-nav-btn:hover {
    background: rgba(166, 97, 245, 0.08);
    border-color: rgba(166, 97, 245, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(87, 50, 128, 0.3);
}

.pj-bottom-nav-btn--prev {
    flex-direction: row;
}

.pj-bottom-nav-btn--next {
    flex-direction: row-reverse;
    text-align: right;
}

.pj-bottom-nav-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 97, 245, 0.12);
    border: 1px solid rgba(166, 97, 245, 0.25);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--primary-lighter);
    transition: all 0.25s ease;
}

.pj-bottom-nav-btn:hover .pj-bottom-nav-arrow {
    background: rgba(166, 97, 245, 0.25);
    border-color: rgba(166, 97, 245, 0.5);
}

.pj-bottom-nav-text {
    overflow: hidden;
    min-width: 0;
}

.pj-bottom-nav-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.35rem;
}

.pj-bottom-nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

.pj-bottom-nav-btn--next .pj-bottom-nav-label {
    text-align: right;
}

.pj-bottom-nav-btn--next .pj-bottom-nav-title {
    text-align: right;
}

.pj-bottom-nav-center {
    display: flex;
    align-items: center;
}

.pj-bottom-nav-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.pj-bottom-nav-gallery:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(87, 50, 128, 0.45);
}

.pj-bottom-nav-gallery svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .pj-bottom-nav {
        padding: 2.5rem 2rem 3.5rem;
    }
}

@media (max-width: 768px) {
    .pj-bottom-nav {
        padding: 2rem 1.25rem 3rem;
    }

    .pj-bottom-nav-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .pj-bottom-nav-btn--prev {
        grid-column: 1;
    }

    .pj-bottom-nav-btn--next {
        grid-column: 2;
    }

    .pj-bottom-nav-center {
        grid-column: 1 / -1;
    }

    .pj-bottom-nav-gallery {
        width: 100%;
    }

    .pj-bottom-nav-btn {
        padding: 1.1rem 1.25rem;
        gap: 0.75rem;
    }

    .pj-bottom-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .pj-bottom-nav-title {
        font-size: 0.85rem;
    }
}


/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-lighter);
    transform: scale(1.2);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pj-main {
        padding: 0 2rem 6rem;
    }

    .pj-hero-overlay {
        padding: 0 2rem 3rem;
    }

    .pj-content-grid {
        grid-template-columns: 1fr;
    }

    .pj-col-main {
        padding: 3rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .pj-col-aside {
        position: static;
        padding: 3rem 0 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 2rem;
    }

    .pj-aside-nav,
    .pj-back-gallery {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .pj-hero {
        height: 80vh;
    }

    .pj-hero-title {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }

    .pj-hero-overlay {
        padding: 0 1.5rem 2.5rem;
    }

    .pj-main {
        padding: 0 1.25rem 4rem;
    }

    .pj-col-main {
        padding: 2rem 0;
    }

    .pj-col-aside {
        grid-template-columns: 1fr;
    }

    .pj-medias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .pj-medias-grid:has(.pj-media-item:only-child) {
        grid-template-columns: 1fr;
    }

    .pj-section-presentation {
        padding: 1.75rem 1.5rem;
    }

    /* Réalisation finale : toujours 1 colonne sur mobile */
    .pj-rendu-grid,
    .pj-rendu-grid:has(.pj-media-item:nth-child(2):last-child),
    .pj-rendu-grid:has(.pj-media-item:nth-child(3):last-child) {
        grid-template-columns: 1fr;
    }

    .pj-rendu-grid .pj-media-item:only-child {
        max-width: 100%;
    }
}

/* =============================================
   PAGE GALERIE
   ============================================= */

.page-galerie-body {
    background:
        radial-gradient(ellipse at 70% 10%, rgba(87, 50, 128, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 90%, rgba(166, 97, 245, 0.12) 0%, transparent 50%),
        url('./images/background-2.webp') center/cover no-repeat fixed;
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.gl-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem 6rem;
}

.gl-header {
    margin-bottom: 3rem;
}

.gl-title {
    font-family: 'Bebas Neue';
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
    color: var(--text-light);
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}

.gl-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-lighter);
}

.gl-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

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

/* Lien galerie index → galerie.html */
.galerie-voir-tous {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.85rem 2rem;
    border: 1px solid rgba(166, 97, 245, 0.35);
    border-radius: 8px;
    color: var(--primary-lighter);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.galerie-voir-tous:hover {
    background: rgba(166, 97, 245, 0.12);
    border-color: rgba(166, 97, 245, 0.6);
    transform: translateY(-2px);
}

.galerie-voir-tous span {
    transition: transform 0.2s ease;
}

.galerie-voir-tous:hover span {
    transform: translateX(4px);
}

/* Lien "actif" dans la nav */
.nav-active {
    color: var(--primary-lighter) !important;
}

@media (max-width: 768px) {
    .gl-main {
        padding: 6rem 1.25rem 4rem;
    }

    .gl-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* =============================================
   NAV TOUJOURS EN MODE "SCROLLED" SUR GALERIE & PROJET
   ============================================= */

.page-projet-body .navigation .nav-container,
.page-galerie-body .navigation .nav-container {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(30, 26, 28, 0.92);
    border-bottom: none;
    border: 1px solid rgba(166, 97, 245, 0.25);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Même effet pour la nav projet compacte */
.page-projet-body .pj-nav .nav-container {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(30, 26, 28, 0.92);
    border-bottom: none;
    border: 1px solid rgba(166, 97, 245, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Masquer réseaux et CV sur la nav projet */
.page-projet-body .navigation .nav-socials,
.page-projet-body .navigation .nav-cv-wrap,
.page-projet-body .navigation .nav-separator {
    display: none;
}

/* Forcer la classe scrolled visuellement dès le chargement sur galerie & projet
   (la nav de base perd son fond pleine largeur au profit du pill) */
.page-projet-body .navigation,
.page-galerie-body .navigation {
    padding: 1rem 1.25rem;
    background: transparent;
}