:root {
    --gold-deep: #b58d53;
    --gold-bright: #e6b980;
    --gold-gradient: linear-gradient(145deg, #8a6d3b, #d4a373, #b58d53, #5a4624);
    --black-matte: #0a0a0a;
    --text-gray: #d1d1d1;
    --parchment: #f2ebd9;
    --dark-brown: #3e270f;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0% { transform: rotate(-3deg) translateY(0px); }
    50% { transform: rotate(-1deg) translateY(-12px); }
    100% { transform: rotate(-3deg) translateY(0px); }
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 10px rgba(181, 141, 83, 0.2); }
    50% { box-shadow: 0 0 25px rgba(181, 141, 83, 0.5); }
    100% { box-shadow: 0 0 10px rgba(181, 141, 83, 0.2); }
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--black-matte);
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
}

#interface-selector {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 4000;
    background: rgba(0,0,0,0.85);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid var(--gold-deep);
    display: flex;
    gap: 6px;
    backdrop-filter: blur(5px);
}

#interface-selector button {
    background: var(--gold-gradient);
    border: none;
    color: var(--dark-brown);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: var(--transition);
}

#interface-selector button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

#app {
    display: flex;
    flex-direction: column;
}

.hero-section {
    padding: 50px 20px 70px;
    background-color: #050505;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    text-align: center;
    position: relative;
    border-bottom: 1px solid #222;
}

.ornament-top {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    opacity: 0.4;
    letter-spacing: 4px;
    margin-bottom: 25px;
    animation: fadeInDown 1s ease-out;
}

.gold-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 8px;
    background: var(--gold-gradient);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    animation: scaleUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

h1 { 
    font-family: 'Cinzel', serif; 
    color: var(--gold-bright); 
    font-size: 1.8rem; 
    margin: 15px 0 5px; 
    letter-spacing: 4px;
    animation: fadeInDown 1s ease-out 0.3s backwards;
}

.author { 
    font-size: 11px; 
    color: var(--text-gray); 
    animation: fadeInDown 1s ease-out 0.5s backwards;
}

.author span { 
    font-style: italic; 
    color: var(--gold-deep); 
}

.tagline { 
    font-family: 'Cinzel', serif; 
    color: var(--gold-deep); 
    font-size: 1rem; 
    margin: 25px 0 15px;
    animation: scaleUp 1s ease-out 0.7s backwards;
}

.tagline span { 
    font-size: 0.8rem; 
    color: var(--gold-bright); 
    font-style: italic; 
    display: block; 
    margin-top: 5px; 
}

.description { 
    font-size: 0.85rem; 
    color: var(--text-gray); 
    line-height: 1.7; 
    max-width: 320px; 
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.location { 
    font-size: 10px; 
    margin-top: 25px; 
    color: var(--gold-deep);
    animation: fadeInUp 1s ease-out 1.1s backwards;
}

.wax-seal {
    width: 95px;
    height: 95px;
    background: radial-gradient(circle, #d4a373 0%, #b58d53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 3px solid #8a6d3b;
    margin: 35px auto -85px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    animation: float 5s ease-in-out infinite, scaleUp 1s ease-out 1.3s backwards;
    transition: var(--transition);
}

.wax-seal:hover { 
    transform: scale(1.1) rotate(0deg); 
    filter: brightness(1.1); 
}

.seal-inner { 
    font-family: 'Cinzel', serif; 
    color: #2a1f0d; 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-align: center; 
    line-height: 1.2; 
}

.content-section {
    background-color: var(--parchment);
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    padding: 120px 20px 50px;
    color: var(--dark-brown);
}

.icon-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 55px;
}

.nav-item { 
    width: 18%; 
    text-align: center; 
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.coin {
    width: 58px;
    height: 58px;
    background: var(--gold-gradient);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: goldPulse 4s infinite ease-in-out;
    transition: var(--transition);
}

.nav-item:hover .coin { 
    transform: translateY(-5px); 
    filter: brightness(1.1); 
}

.coin img { 
    width: 55%; 
    filter: brightness(0.15) sepia(1); 
}

.nav-item span { 
    font-family: 'Cinzel', serif; 
    font-size: 0.5rem; 
    font-weight: 700; 
    display: block; 
    margin-top: 10px; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
}

.gallery-card { 
    text-align: center; 
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.img-wrapper { 
    border: 3px solid var(--gold-deep); 
    aspect-ratio: 1; 
    overflow: hidden;
    position: relative;
    background-color: #222;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.sprite {
    background-image: url('grille.jpg');
    background-size: 310% auto;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.oeuvres { background-position: 2% 50%; }
.odyssee { background-position: 50% 50%; }
.sigils { background-position: 98% 50%; }

.gallery-card:hover .sprite { transform: scale(1.1); }

.gallery-card h3 { 
    font-family: 'Cinzel', serif; 
    font-size: 0.95rem; 
    margin-top: 15px; 
    letter-spacing: 2px; 
}

body.view-pc #app { 
    flex-direction: row; 
    height: 100vh; 
}

body.view-pc .hero-section {
    width: 38vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    text-align: left;
    border-bottom: none;
    border-right: 2px solid var(--gold-deep);
}

body.view-pc .ornament-top { margin: 0 0 40px 0; }
body.view-pc .gold-frame { margin: 0 0 35px 0; width: 220px; height: 220px; }
body.view-pc h1 { font-size: 2.8rem; }
body.view-pc .description { margin: 0; max-width: 450px; font-size: 1rem; }
body.view-pc .wax-seal { margin: 50px 0 0 0; }

body.view-pc .content-section {
    width: 62vw;
    height: 100vh;
    overflow-y: auto;
    padding: 80px;
}

body.view-pc .gallery-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

body.view-pc .nav-item { animation-delay: 1.5s; }

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: 2px solid var(--dark-brown);
    font-size: 24px;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: scaleUp 1s backwards 2s;
}

#chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: var(--parchment);
    border: 3px solid var(--gold-deep);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    z-index: 3000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-container.hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    pointer-events: none;
}

.chat-header {
    background: var(--black-matte);
    color: var(--gold-bright);
    padding: 15px;
    font-family: 'Cinzel', serif;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

#chat-body {
    flex: 1;
    position: relative;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.lock-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(232, 226, 210, 0.9);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.lock-content h3 { 
    font-family: 'Cinzel', serif; 
    color: var(--dark-brown); 
    margin: 10px 0; 
}

.lock-content p { 
    font-size: 12px; 
    color: #666; 
    margin-bottom: 20px; 
}

.lock-icon { 
    font-size: 40px; 
    margin-bottom: 10px; 
}

.insta-btn {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--dark-brown);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 11px;
    border: 1px solid var(--dark-brown);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#chat-close { 
    background: none; 
    border: none; 
    color: white; 
    cursor: pointer; 
    font-size: 18px; 
}