:root {
    --bg-dark: #09070f;
    --card-bg: rgba(19, 15, 36, 0.88);
    --accent-indigo: #2e1354;
    --accent-light: #c4b5fd;
    --border-metal: #7a7090;
    --text-main: #e2e8f0;
    --site-max-width: 1200px;
    --border-thickness: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(9, 7, 15, 0.4) 0%, rgba(9, 7, 15, 0.92) 90%),
        url('bg-pattern.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

.hidden { display: none !important; }

.page-transition {
    animation: fadeInPage 0.4s ease-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

/* Header Navigation & Frise */
header {
    background: rgba(9, 7, 15, 0.95);
    border-bottom: 1px solid var(--border-metal);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 12px 20px;
}

.header-container {
    width: 100%;
    max-width: var(--site-max-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.moon-logo { width: 32px; height: 32px; }
.logo { font-size: 1.4rem; color: var(--accent-light); }

.header-frieze {
    font-size: 0.95rem;
    color: var(--accent-light);
    letter-spacing: 3px;
    opacity: 0.85;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.5);
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--accent-light); }
.menu-icon { width: 22px; height: 22px; cursor: pointer; }

/* Wrapper Principal Page 1 */
.main-wrapper {
    padding: 130px 20px 50px;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

/* Groupes Décoratifs */
.decor-group {
    position: fixed;
    top: 60px;
    z-index: 110;
    display: flex;
    align-items: flex-start;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.group-left { left: clamp(5px, 1.5vw, 25px); }
.group-right { right: clamp(5px, 1.5vw, 25px); }

.decor-item {
    height: auto;
    filter: drop-shadow(0 0 12px rgba(196, 181, 253, 0.35));
    transform-origin: top center;
}

.chain-i-left, .chain-i-right-small, .chain-i-right {
    cursor: pointer;
    animation: floatGently 4.2s ease-in-out infinite alternate;
}

.chain-u-heavy {
    cursor: default;
    pointer-events: none;
    animation: floatSubtleU 6s ease-in-out infinite alternate;
}

.chain-i-left { width: clamp(80px, 7vw, 105px); }
.chain-u-left-1 { width: clamp(280px, 22vw, 380px); margin-left: -20px; animation-delay: 0.2s; }
.chain-u-left-2 { width: clamp(250px, 19.5vw, 340px); margin-left: -120px; opacity: 0.88; z-index: 2; animation-delay: 1.2s; }
.chain-u-right { width: clamp(270px, 21vw, 370px); animation-delay: 0.8s; }
.chain-i-right-small { width: clamp(60px, 5vw, 80px); margin-left: -50px; animation-delay: 0.3s; }
.chain-i-right { width: clamp(85px, 7.5vw, 110px); margin-left: 10px; animation-delay: 0.45s; }

.decor-item.shake-active {
    animation: userNaturalSwing 0.8s ease-in-out forwards !important;
}

@keyframes userNaturalSwing {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(14deg); }
    70% { transform: rotate(-8deg); }
    100% { transform: rotate(0deg); }
}

@keyframes floatGently {
    0% { transform: rotate(-1.5deg) translateY(0px); }
    100% { transform: rotate(1.5deg) translateY(5px); }
}

@keyframes floatSubtleU {
    0% { transform: rotate(-0.5deg) translateY(0px); }
    100% { transform: rotate(0.5deg) translateY(3px); }
}

/* GRAND CADRE UNIFIÉ */
.unified-frame {
    width: 100%;
    background: var(--card-bg);
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.frame-border-overlay {
    position: absolute;
    top: -15px;
    left: -6px;
    right: -6px;
    bottom: -15px;
    pointer-events: none;
    z-index: 10;
    
    border-style: solid;
    border-width: calc(var(--border-thickness) + 2px);
    border-image-source: url('border.png');
    border-image-slice: 28%;
    border-image-repeat: round;
}

.frame-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--border-thickness) / 2) calc(var(--border-thickness) / 2) 40px;
}

/* INTRO CENTRÉE & TITRE AJUSTÉ ANTI-SAUT */
.intro-block-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 35px;
    padding: 10px 10px 0;
}

.hero-header-moons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
    width: 100%;
}

.hero-header-moons h1 {
    font-size: clamp(1.2rem, 4.2vw, 2.8rem);
    color: var(--accent-light);
    letter-spacing: clamp(1px, 1vw, 5px);
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(196, 181, 253, 0.4);
}

.steel-moon-img {
    width: clamp(30px, 6vw, 100px);
    height: auto;
    filter: drop-shadow(0 0 12px rgba(196, 181, 253, 0.5));
    flex-shrink: 0;
}

.moon-flipped { transform: scaleX(-1); }

.subtitle {
    color: var(--border-metal);
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    margin-bottom: 15px;
}

.bio-short-centered {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    max-width: 780px;
    margin-bottom: 20px;
    line-height: 1.65;
}

.more-about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
}

.arrow-right { display: inline-block; transition: transform 0.3s; }
.more-about-link:hover { color: #ffffff; }
.more-about-link:hover .arrow-right { transform: translateX(5px); }

/* GALERIE ARCHE DEMI-CERCLE PARFAIT */
.projects-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% + var(--border-thickness));
    margin-left: calc(-1 * (var(--border-thickness) / 2));
    margin-right: calc(-1 * (var(--border-thickness) / 2));
    margin-bottom: 80px;
}

.arch-gallery-frame {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* Garde la vraie arche */
    border-top: 2px solid var(--border-metal);
    border-bottom: 2px solid var(--border-metal);
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project-card {
    position: relative;
    height: clamp(150px, 26vw, 320px);
    overflow: hidden;
    border-right: 1px solid var(--border-metal);
}

.project-card:last-child { border-right: none; }

.arch-tint-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 16, 53, 0.45);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card:hover .arch-tint-overlay { opacity: 0.2; }

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img { transform: scale(1.05); }

/* Bouton Explore */
.btn-overlay-wrapper {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.explore-btn-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.explore-btn {
    max-width: 550px;
    width: clamp(280px, 80vw, 550px);
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.btn-text {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 2px;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(9, 7, 15, 0.9);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.explore-btn-link:hover { transform: scale(1.04); }
.explore-btn-link:hover .explore-btn { filter: drop-shadow(0 0 20px rgba(196, 181, 253, 0.8)); }
.explore-btn-link:hover .btn-text { color: #ffffff; text-shadow: 0 0 15px rgba(196, 181, 253, 0.9); }

/* SECTION CAREER & CREDITS */
.experience-block { padding: 30px 10px 10px 10px; }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--accent-light); text-align: center; margin-bottom: 30px; }

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.credit-card {
    background: rgba(46, 19, 84, 0.35);
    border: 1px solid var(--border-metal);
    border-radius: 15px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.credit-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-light);
    box-shadow: 0 0 25px rgba(196, 181, 253, 0.35);
}

.studio-logo-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(9, 7, 15, 0.8);
    border: 1px solid var(--border-metal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.studio-logo { width: 80%; height: 80%; object-fit: contain; }
.credit-info h3 { font-size: 1.15rem; color: var(--accent-light); margin-bottom: 3px; }
.studio-name { display: block; font-size: 0.88rem; color: var(--text-main); font-weight: 600; margin-bottom: 6px; }
.stats { color: #c4b5fd; }
.credit-info p { font-size: 0.85rem; color: var(--border-metal); line-height: 1.45; }

/* SECTION CONTACT */
.contact-section {
    display: flex;
    justify-content: center;
    padding: 100px 15px 40px;
}

.contact-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--site-max-width);
    display: flex;
    justify-content: center;
}

.contact-frame {
    width: 100%;
    background: var(--card-bg);
    position: relative;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.8);
    z-index: 10;
    transition: box-shadow 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
}

.contact-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--border-thickness) / 1.5);
    text-align: center;
}

.contact-frame h2 { color: var(--accent-light); font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 20px; }

.email-badge-container {
    margin-bottom: 25px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.email-label { font-size: 0.72rem; color: var(--border-metal); letter-spacing: 2px; margin-bottom: 8px; }

.email-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(46, 19, 84, 0.6);
    border: 1px solid var(--accent-light);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(196, 181, 253, 0.2);
    max-width: 100%;
}

.email-address { 
    font-family: 'Cinzel', serif; 
    color: #ffffff; 
    font-size: clamp(0.85rem, 2.2vw, 1.05rem); 
    letter-spacing: 1px;
    word-break: break-all;
}

.copy-email-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-indigo);
    border: 1px solid var(--border-metal);
    color: var(--accent-light);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.copy-icon-img { width: 15px; height: 15px; object-fit: contain; }
.copy-email-btn:hover { background: var(--accent-light); color: var(--bg-dark); border-color: #ffffff; }
.copy-email-btn.copied { background: #10b981; color: #ffffff; border-color: #10b981; }

.socials-container {
    background: rgba(46, 19, 84, 0.5);
    border: 1px solid var(--border-metal);
    border-radius: 20px;
    padding: 20px;
}

.socials-container h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--text-main); }

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-item img { width: 38px; height: 38px; transition: filter 0.3s; }
.social-user { font-size: 0.82rem; color: var(--accent-light); font-weight: 500; opacity: 0.85; transition: opacity 0.3s, color 0.3s; }

.social-item:hover { transform: translateY(-4px); }
.social-item:hover img { filter: drop-shadow(0 0 10px var(--accent-light)); }
.social-item:hover .social-user { opacity: 1; color: #ffffff; }

.pulse-highlight {
    animation: pulseFrameGlowZoom 1.5s ease-in-out;
}

@keyframes pulseFrameGlowZoom {
    0% { box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); transform: scale(1); }
    50% { box-shadow: 0 0 55px rgba(196, 181, 253, 0.95); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); transform: scale(1); }
}

.site-footer {
    position: relative;
    z-index: 50;
    text-align: center;
    padding: 30px 15px 25px;
    color: #c4b5fd;
    font-size: 0.82rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   PAGE 2 : PORTAILS
   ========================================================================== */

.portfolio-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 90px 15px 40px;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.portals-hub {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hub-header-banner {
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

.hub-banner-img {
    max-width: 550px;
    width: 85vw;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(196, 181, 253, 0.4));
}

.hub-title-text {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(0.9rem, 2.2vw, 1.4rem);
    letter-spacing: 2px;
    color: var(--accent-light);
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(9, 7, 15, 0.95);
}

.hub-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--border-metal);
    margin-bottom: 25px;
    text-align: center;
}

.portals-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 10px 10px;
}

.portal-wrapper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.portals-divider img {
    width: 45px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--accent-light));
    margin-top: 180px;
}

.portal-card {
    position: relative;
    width: clamp(260px, 30vw, 360px);
    height: clamp(340px, 40vw, 460px);
    background: transparent !important;
    border: none !important;
    border-radius: 20px;
    cursor: pointer;
    overflow: visible !important;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.portal-bg {
    position: absolute;
    inset: 0;
    background-image: url('portal selection.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    filter: brightness(0.85) drop-shadow(0 0 15px rgba(196, 181, 253, 0.25));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portal-card:hover { transform: translateY(-8px) scale(1.02); }
.portal-card:hover .portal-bg { filter: brightness(1.15) drop-shadow(0 0 35px rgba(196, 181, 253, 0.85)); transform: scale(1.04); }

.portal-card.portal-diving-active {
    animation: portalDiveAnim 0.85s cubic-bezier(0.7, 0, 0.2, 1) forwards !important;
    z-index: 250;
}

@keyframes portalDiveAnim {
    0% { transform: scale(1); filter: brightness(1); }
    40% { transform: scale(1.3); filter: brightness(1.8) drop-shadow(0 0 50px #ffffff); }
    100% { transform: scale(4); opacity: 0; filter: brightness(3); }
}

.portal-label-box {
    text-align: center;
    background: rgba(19, 15, 36, 0.9);
    border: 1px solid var(--border-metal);
    padding: 8px 20px;
    border-radius: 18px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.portal-label-box h3 { font-size: 1.3rem; color: var(--accent-light); }
.portal-label-box p { font-size: 0.8rem; color: var(--border-metal); }

/* SECTION 3D & STUDIOS SHOWCASE */
.gallery-display { width: 100%; }

.back-btn {
    background: transparent;
    border: 1px solid var(--border-metal);
    color: var(--accent-light);
    padding: 8px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.3s, border-color 0.3s;
}

.back-btn:hover { background: rgba(46, 19, 84, 0.6); border-color: var(--accent-light); }
.gallery-category-title { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--accent-light); margin-bottom: 25px; text-align: center; }

/* INSTRUCTION SUBTITLE EN HAUT DE SECTION 3D */
.title-sub-instruction {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--border-metal);
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.8;
    display: inline-block;
    margin-left: 6px;
}

.roles-3d-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.role-3d-card {
    background: var(--card-bg);
    border: 1px solid var(--border-metal);
    border-radius: 15px;
    padding: 18px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.role-3d-img {
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: rgba(9, 7, 15, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-metal);
    flex-shrink: 0;
    padding: 5px;
}

.role-3d-details h4 { font-size: 1.15rem; color: var(--accent-light); }
.role-badge { display: inline-block; font-size: 0.8rem; color: #c4b5fd; background: rgba(46, 19, 84, 0.6); padding: 3px 10px; border-radius: 12px; margin: 4px 0 8px 0; }
.role-3d-details p { font-size: 0.88rem; line-height: 1.5; }

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 2px solid var(--accent-indigo);
    padding-left: 15px;
}

.timeline-year { font-size: 0.82rem; color: var(--accent-light); font-weight: 600; }
.timeline-item h4 { font-size: 1.05rem; color: var(--text-main); margin: 2px 0; }
.timeline-item p { font-size: 0.88rem; color: var(--border-metal); line-height: 1.5; }

/* GALERIE 2D ART & MINIATURES */
.gallery-intro-sub { text-align: center; color: var(--border-metal); margin-bottom: 30px; font-size: 0.95rem; }

.artworks-2d-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.art-tile {
    display: flex;
    flex-direction: column;
    background: rgba(19, 15, 36, 0.85);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-metal);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.art-tile-img-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.art-tile-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.art-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 7, 15, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.art-tile-overlay span {
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'Cinzel', serif;
    border-bottom: 1px solid var(--accent-light);
    letter-spacing: 1px;
}

.art-tile-footer {
    padding: 10px 12px;
    background: rgba(9, 7, 15, 0.92);
    border-top: 1px solid rgba(122, 112, 144, 0.3);
    text-align: center;
}

.art-tile-footer h4 {
    color: var(--accent-light);
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-tile:hover {
    transform: translateY(-4px);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.4);
}

.art-tile:hover img { transform: scale(1.08); }
.art-tile:hover .art-tile-overlay { opacity: 1; }

/* LIGHTBOX FULLSCREEN 2D ADAPTATIVE */
.artwork-modal-card {
    position: relative;
    width: auto;
    max-width: 92vw;
    height: auto;
    max-height: 88vh;
    background: var(--card-bg);
    border: 1px solid var(--border-metal);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.artwork-modal-body {
    display: flex;
    flex-direction: row;
    max-height: 88vh;
    overflow: hidden;
}

.art-display-stage {
    position: relative;
    flex: 1 1 auto;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 60px;
    overflow: hidden;
}

.art-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 7, 15, 0.85);
    border: 1px solid var(--border-metal);
    color: var(--accent-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.3s ease;
}

.art-nav-btn:hover {
    background: var(--accent-indigo);
    border-color: var(--accent-light);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(196, 181, 253, 0.5);
}

.art-prev-btn { left: 12px; }
.art-next-btn { right: 12px; }

.art-img-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 80vh;
}

.art-img-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.watermark-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.10);
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 10px;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.art-counter-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(9, 7, 15, 0.85);
    border: 1px solid var(--border-metal);
    color: var(--border-metal);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 25;
}

.art-details-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(9, 7, 15, 0.95);
    border-left: 1px solid var(--border-metal);
    overflow-y: auto;
}

.art-details-sidebar h3 { font-size: 1.35rem; color: var(--accent-light); margin-bottom: 12px; }

.art-meta-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.art-tag { font-size: 0.82rem; color: var(--border-metal); }
.art-tag.highlight { color: var(--accent-light); font-weight: 600; }
.art-modal-description { font-size: 0.88rem; line-height: 1.55; color: var(--text-main); }

/* PAGE 3 : ABOUT PAGE */
.about-wrapper { width: 100%; max-width: var(--site-max-width); }
.about-frame { width: 100%; }

.about-header { text-align: center; margin-bottom: 25px; }

.about-title-with-moons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.moon-title-icon { width: 32px; height: 32px; filter: drop-shadow(0 0 10px var(--accent-light)); }
.moon-flipped { transform: scaleX(-1); }
.about-title-with-moons h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--accent-light); }

.about-subtitle { color: var(--border-metal); font-size: 0.98rem; margin-top: 4px; }

.about-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(122, 112, 144, 0.3);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-metal);
    color: var(--text-main);
    padding: 8px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--accent-indigo);
    border-color: var(--accent-light);
    color: var(--accent-light);
    box-shadow: 0 0 15px rgba(196, 181, 253, 0.3);
}

.about-tab-content { min-height: 250px; }

.tab-pane { display: none; animation: fadeInTab 0.4s ease forwards; }
.tab-pane.active { display: block; }

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-pane-grid {
    display: flex;
    align-items: flex-start;
    gap: 35px;
}

.about-photo-wrapper { flex-shrink: 0; }

.about-photo-raw {
    width: 340px;
    height: 440px;
    overflow: hidden;
    border-radius: 20px;
}

.about-photo-img-raw {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pane-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pane-text p { font-size: 0.98rem; line-height: 1.65; color: var(--text-main); }
.info-badges-grid { display: flex; gap: 12px; flex-wrap: wrap; }

.info-badge {
    background: rgba(46, 19, 84, 0.4);
    border: 1px solid var(--border-metal);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.badge-label { font-size: 0.72rem; color: var(--border-metal); text-transform: uppercase; letter-spacing: 1px; }
.badge-val { font-size: 0.95rem; color: var(--text-main); font-weight: 600; margin-top: 2px; }
.badge-val.highlight { color: var(--accent-light); }

.about-contact-embed {
    background: rgba(9, 7, 15, 0.8);
    border: 1px dashed var(--border-metal);
    padding: 15px 18px;
    border-radius: 12px;
}

.about-contact-embed h4 { color: var(--accent-light); font-size: 0.95rem; margin-bottom: 4px; }
.about-embed-email { font-family: 'Cinzel', serif; color: #ffffff; font-size: 0.9rem; margin-bottom: 6px; }
.about-mini-socials a { color: var(--accent-light); text-decoration: none; font-size: 0.82rem; margin: 0 4px; }
.about-mini-socials a:hover { text-decoration: underline; color: #ffffff; }

.passions-grid, .toolbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.passion-card, .tool-item {
    background: rgba(46, 19, 84, 0.35);
    border: 1px solid var(--border-metal);
    border-radius: 15px;
    padding: 18px;
}

.tool-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.tool-logo-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(9, 7, 15, 0.8);
    border: 1px solid var(--border-metal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-logo-img { width: 75%; height: 75%; object-fit: contain; }
.tool-name { color: var(--accent-light); font-size: 1rem; font-weight: 700; display: block; }
.tool-exp { font-size: 0.78rem; color: #c4b5fd; display: block; }
.tool-desc { font-size: 0.85rem; color: var(--border-metal); line-height: 1.45; }

/* POP-UP MODALE STUDIO & MULTI-PROJECT NAVIGATION */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7, 5, 12, 0.88);
    backdrop-filter: blur(12px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: fadeInOverlay 0.35s ease forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 85vh;
    background: var(--card-bg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    animation: popupPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card-inner {
    position: relative;
    width: 100%;
    min-height: 100%;
}

@keyframes popupPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); filter: blur(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-track { background: rgba(9, 7, 15, 0.7); border-radius: 4px; }
.modal-card::-webkit-scrollbar-thumb { background: var(--accent-indigo); border: 1px solid var(--border-metal); border-radius: 10px; }
.modal-card::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

.multi-project-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(9, 7, 15, 0.8);
    border: 1px solid var(--border-metal);
    padding: 8px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.multi-nav-title {
    font-size: 0.8rem;
    color: var(--border-metal);
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.multi-nav-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.multi-nav-btn {
    background: rgba(46, 19, 84, 0.4);
    border: 1px solid var(--border-metal);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.78rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-nav-btn.active, .multi-nav-btn:hover {
    background: var(--accent-indigo);
    border-color: var(--accent-light);
    color: var(--accent-light);
    box-shadow: 0 0 10px rgba(196, 181, 253, 0.4);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(19, 15, 36, 0.95);
    border: 2px solid var(--accent-light);
    color: var(--accent-light);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(196, 181, 253, 0.4);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent-light);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(196, 181, 253, 0.9);
}

.modal-content {
    position: relative;
    z-index: 1;
    padding: 50px 35px 50px 35px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.modal-logo-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: rgba(9, 7, 15, 0.9);
    border: 2px solid var(--border-metal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-logo-img { width: 80%; height: 80%; object-fit: contain; }
.modal-titles h2 { font-size: 1.6rem; color: var(--accent-light); line-height: 1.2; }
.modal-subtitle { display: block; font-size: 0.9rem; color: var(--border-metal); margin-top: 3px; margin-bottom: 10px; }

.modal-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-tag { font-size: 0.78rem; padding: 3px 10px; border-radius: 15px; background: rgba(46, 19, 84, 0.6); border: 1px solid var(--border-metal); color: var(--text-main); }
.meta-tag.highlight { border-color: var(--accent-light); color: var(--accent-light); }

.modal-hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 12px;
    border: 1px solid var(--border-metal);
    overflow: hidden;
    margin-bottom: 25px;
}

.modal-hero-img { width: 100%; height: 100%; object-fit: cover; }

.slideshow-controls {
    position: absolute;
    bottom: 12px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(9, 7, 15, 0.85);
    border: 1px solid var(--border-metal);
    padding: 4px 12px;
    border-radius: 18px;
}

.slide-btn { background: transparent; border: none; color: var(--accent-light); font-family: 'Montserrat', sans-serif; font-weight: 600; cursor: pointer; transition: color 0.3s; }
.slide-btn:hover { color: #ffffff; }
.slide-counter { font-size: 0.8rem; color: var(--border-metal); }

.modal-body-text h3 { font-size: 1.1rem; color: var(--accent-light); margin-top: 20px; margin-bottom: 8px; }
.modal-body-text p { font-size: 0.92rem; color: var(--text-main); line-height: 1.55; margin-bottom: 12px; }

.modal-timeline-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid var(--accent-indigo);
    padding-left: 15px;
    margin: 12px 0 20px 0;
}

.modal-timeline-item h4 { font-size: 0.98rem; color: var(--accent-light); }
.m-timeline-date { font-size: 0.78rem; color: var(--border-metal); font-weight: 600; }
.modal-timeline-item p { font-size: 0.88rem; color: var(--text-main); margin-top: 2px; }

.modal-links-section {
    margin-top: 28px;
    padding-top: 15px;
    border-top: 1px solid rgba(122, 112, 144, 0.3);
}

.modal-links-section h4 { font-size: 0.98rem; color: var(--accent-light); margin-bottom: 12px; }

.modal-link-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.modal-project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(46, 19, 84, 0.5);
    border: 1px solid var(--border-metal);
    color: var(--text-main);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-project-link:hover {
    background: var(--accent-indigo);
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(196, 181, 253, 0.3);
}


/* ==========================================================================
   ADAPTATION RESPONSIVE AJUSTÉE
   ========================================================================== */

/* 1. TABLETTES (< 1024px) */
@media (max-width: 1024px) {
    :root {
        --border-thickness: 65px;
    }

    .decor-group {
        opacity: 0.35;
        pointer-events: none;
    }

    .passions-grid, .toolbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. PETITES TABLETTES & MOBILES LARGES (< 768px) */
@media (max-width: 768px) {
    :root {
        --border-thickness: 38px;
    }

    .header-frieze, .decor-group {
        display: none !important;
    }

    header {
        padding: 10px 15px;
    }

    .frame-border-overlay {
        top: -8px;
        bottom: -8px;
        left: -4px;
        right: -4px;
    }

    .main-wrapper, .portfolio-wrapper, .contact-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }

    .about-pane-grid {
        flex-direction: column;
        align-items: center;
    }

    .about-photo-raw {
        width: 100%;
        max-width: 320px;
        height: 380px;
    }

    .passions-grid, .toolbox-grid {
        grid-template-columns: 1fr;
    }

    /* Subtitle instruction passe sous le titre principal */
    .title-sub-instruction {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 0.78rem;
    }

    /* Hub Portails */
    .portals-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .portals-divider img {
        margin-top: 0;
        transform: rotate(90deg);
        width: 38px;
    }

    .portal-card {
        width: min(320px, 85vw);
        height: clamp(380px, 110vw, 440px);
    }

    /* Popup 2D Responsive Vertical */
    .artwork-modal-card {
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    .artwork-modal-body {
        flex-direction: column;
        max-height: none;
    }

    .art-display-stage {
        padding: 15px 45px;
        min-height: 280px;
    }

    .art-img-wrapper img {
        max-height: 50vh;
    }

    .art-details-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-metal);
        padding: 20px 18px;
    }

    /* Modal Studio Responsive */
    .modal-content {
        padding: 40px 20px 30px 20px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .modal-titles h2 {
        font-size: 1.35rem;
    }

    .modal-hero-img-wrapper {
        height: 210px;
    }
}

/* 3. MOBILES (< 480px) */
@media (max-width: 480px) {
    :root {
        --border-thickness: 26px;
    }

    .frame-border-overlay {
        top: -5px;
        bottom: -5px;
        left: -3px;
        right: -3px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .moon-logo {
        width: 26px;
        height: 26px;
    }

    .nav-links {
        gap: 12px;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero-header-moons h1 {
        font-size: clamp(1rem, 3.8vw, 1.4rem);
        letter-spacing: 1px;
    }

    .project-card {
        height: 120px;
    }

    .btn-text {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .email-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px 15px;
        gap: 8px;
    }

    .artworks-2d-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .art-tile-img-wrapper {
        height: 150px;
    }

    .art-tile-footer h4 {
        font-size: 0.8rem;
    }

    /* Correction des logos 3D Realms : Format Carré 1:1 aligné à gauche */
    .role-3d-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .role-3d-img {
        width: 70px;
        height: 70px;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }
}