/* ==========================================================================
   THELEBORN CORE ARCHITECTURE // LUXURY GOLD & MATTE BLACK EDITION
   ========================================================================== */

:root {
    --bg-pure: #050507; 
    --bg-card: linear-gradient(145deg, #111114 0%, #08080a 100%);
    --text-pure: #ffffff;
    --text-dark: #a1a1aa; 
    
    --gold-raw: #d4af37;
    --gold-bright: #fcf6ba;
    --gold-deep: #aa771c;
    --gold-linear: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    
    --fine-line: rgba(212, 175, 55, 0.15); 
    --hover-bg: rgba(212, 175, 55, 0.05);
    --gold-glow: rgba(212, 175, 55, 0.25);
}

html.light-mode {
    --bg-pure: #fcfbf9; 
    --bg-card: linear-gradient(145deg, #ffffff 0%, #f4f2eb 100%);
    --text-pure: #111111; 
    --text-dark: #5c574c; 
    
    --gold-raw: #a37c16; 
    --gold-bright: #d4af37; 
    --gold-deep: #5e4505; 
    --gold-linear: linear-gradient(135deg, #a37c16 0%, #d4af37 25%, #7a5c0b 50%, #d4af37 75%, #5e4505 100%);
    
    --fine-line: rgba(163, 124, 22, 0.2);
    --hover-bg: rgba(163, 124, 22, 0.05);
    --gold-glow: rgba(163, 124, 22, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-pure);
    color: var(--text-pure);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.1px;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   MOTEUR D'ANIMATION HAUTE HORLOGERIE (MOUVEMENT AUTONOME DES LIGNES)
   ========================================================================== */

@keyframes luxuryFloat1 {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(15px, 10px) rotate(0.3deg); }
    66% { transform: translate(-10px, 20px) rotate(-0.2deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes luxuryFloat2 {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(-0.4deg); }
    66% { transform: translate(10px, -10px) rotate(0.2deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes luxuryFloat3 {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(10px, -20px) rotate(0.2deg); }
    66% { transform: translate(-15px, 10px) rotate(-0.3deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes luxuryFloat4 {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    33% { transform: translate(-10px, -10px) rotate(-0.2deg); }
    66% { transform: translate(20px, 15px) rotate(0.4deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* ==========================================================================
   L'OEUVRE D'ART EN ARRIÈRE-PLAN
   ========================================================================== */

.luxury-art-bg {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden; 
}

.luxury-art-bg svg {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform; 
}

/* Liaison des trajectoires fluides sur chaque fil d'or individuel */
#art-canvas path:nth-child(1) {
    animation: luxuryFloat1 28s ease-in-out infinite;
    transform-origin: center;
}
#art-canvas path:nth-child(2) {
    animation: luxuryFloat2 35s ease-in-out infinite;
    transform-origin: center;
}
#art-canvas path:nth-child(3) {
    animation: luxuryFloat3 42s ease-in-out infinite;
    transform-origin: center;
}
#art-canvas path:nth-child(4) {
    animation: luxuryFloat4 31s ease-in-out infinite;
    transform-origin: center;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION STICKY (ALIGNEMENT 60%)
   ========================================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20vw; 
    position: sticky;
    top: 0;
    background-color: rgba(5, 5, 7, 0.85); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fine-line);
    z-index: 100;
}
html.light-mode .navbar { background-color: rgba(252, 251, 249, 0.85); }

.navbar .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 4px;
    background: var(--gold-linear);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}
.navbar .logo:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-raw); }

.theme-btn {
    background: transparent;
    border: 1px solid var(--gold-raw);
    color: var(--gold-raw);
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.theme-btn:hover { background: var(--gold-linear); color: #000; border-color: transparent; }

/* ==========================================================================
   STRUCTURE GÉNÉRALE DES SECTIONS
   ========================================================================== */

.viewport-canvas { position: relative; z-index: 2; padding: 0; }

section {
    padding-top: 8rem;
    padding-bottom: 4rem;
    scroll-margin-top: 5rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 5rem;
    width: 60vw; 
    margin-left: 20vw; 
    text-transform: uppercase;
}

.gold-gradient-text { 
    background: var(--gold-linear); 
    background-size: 200% auto;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    animation: goldShine 4s linear infinite;
}

.mt-2 { margin-top: 2rem; }
.h-full { height: 100%; }

/* ==========================================================================
   BASE DES CARTES COUPE MATTE
   ========================================================================== */

.about-card, .project-card, .pricing-card, .contact-info, .contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--fine-line);
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover, .project-card:hover, .pricing-card:hover, .contact-info:hover, .contact-form-container:hover {
    border-color: var(--gold-bright); 
    transform: translateY(-6px);
    box-shadow: 0 15px 40px var(--gold-glow); 
}

/* ==========================================================================
   1. HERO (ACCUEIL)
   ========================================================================== */

.hero-editorial { 
    margin-top: 6rem; 
    padding-left: 20vw; 
    padding-right: 20vw; 
    padding-top: 2rem; 
}
.hero-meta { font-family: 'Cinzel', serif; font-size: 0.9rem; color: var(--gold-raw); letter-spacing: 6px; margin-bottom: 1.5rem; font-weight: 800; }

.hero-editorial h1 { 
    font-family: 'Syne', sans-serif; 
    font-weight: 700; 
    font-size: 5.5rem; 
    line-height: 1.05; 
    letter-spacing: -1px; 
    margin-bottom: 1.5rem; 
}

.hero-sub { font-size: 1.1rem; color: var(--text-dark); letter-spacing: 2px; font-weight: 400; text-transform: uppercase; }

/* ==========================================================================
   2. À PROPOS 
   ========================================================================== */

.about-section { width: 100%; }
.about-grid { width: 60vw; margin-left: 20vw; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-col { display: flex; flex-direction: column; }

.about-card { padding: 3rem; }
.card-title { font-family: 'Syne', sans-serif; font-size: 1.6rem; color: var(--gold-bright); margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.about-card p { color: var(--text-dark); line-height: 1.7; margin-bottom: 1rem; font-size: 1rem; }

.timeline { border-left: 1px solid var(--gold-raw); padding-left: 1.8rem; margin-top: 2rem; margin-left: 0.5rem; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -2.15rem; top: 0.2rem; width: 12px; height: 12px; background: var(--gold-linear); border-radius: 50%; box-shadow: 0 0 10px var(--gold-raw); }
.timeline-date { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold-raw); font-weight: 800; margin-bottom: 0.3rem; letter-spacing: 1px; }
.timeline-title { font-size: 1.15rem; color: var(--text-pure); font-weight: 600; margin-bottom: 0.5rem; }

.skills-category { margin-bottom: 2.5rem; }
.skills-category h4 { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold-raw); margin-bottom: 1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skills-tags span { background: rgba(0,0,0,0.3); border: 1px solid var(--fine-line); color: var(--text-pure); padding: 0.5rem 1.2rem; border-radius: 4px; font-size: 0.85rem; font-weight: 500; transition: all 0.3s ease; }
.skills-tags span:hover { border-color: var(--gold-raw); background: var(--hover-bg); color: var(--gold-bright); }

.stats-row { display: flex; justify-content: space-around; border-top: 1px solid var(--fine-line); padding-top: 2.5rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: 'Syne', sans-serif; font-size: 2.8rem; font-weight: 700; background: var(--gold-linear); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.8rem; color: var(--text-dark); text-transform: uppercase; letter-spacing: 2px; margin-top: 0.5rem; display: block; }

/* ==========================================================================
   3. PROJETS
   ========================================================================== */

.projects-grid { width: 60vw; margin-left: 20vw; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }

.project-card { display: flex; flex-direction: column; overflow: hidden; }

.project-image {
    height: 240px;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fine-line);
}
.project-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.5s ease, transform 0.5s ease; filter: grayscale(50%); }
.project-card:hover .project-image img { transform: scale(1.05); opacity: 1; filter: grayscale(0%); }

.project-placeholder { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 700; color: var(--gold-raw); opacity: 0.2; transition: opacity 0.4s ease; }
.project-card:hover .project-placeholder { opacity: 1; text-shadow: 0 0 20px var(--gold-raw); }

.project-badge { position: absolute; top: 1.5rem; left: 1.5rem; background: var(--gold-linear); color: #000; font-weight: 800; font-size: 0.75rem; padding: 0.4rem 1rem; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; z-index: 2; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }

.project-content { padding: 2.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-title { font-family: 'Syne', sans-serif; font-size: 1.6rem; color: var(--text-pure); margin-bottom: 1rem; font-weight: 700; }
.project-desc { color: var(--text-dark); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; flex-grow: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.project-tag { border: 1px solid var(--fine-line); color: var(--gold-raw); padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.75rem; background-color: rgba(212, 175, 55, 0.05); }

.project-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--fine-line); padding-top: 1.5rem; }

.btn-project { background: var(--gold-linear); color: #000; padding: 0.8rem 1.5rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; text-decoration: none; transition: all 0.3s ease; }
.btn-project:hover { box-shadow: 0 0 20px var(--gold-raw); transform: translateY(-2px); }

.project-icons { display: flex; gap: 1rem; }
.project-icons a svg { width: 22px; height: 22px; fill: var(--text-dark); transition: fill 0.3s ease, transform 0.3s ease; }
.project-icons a:hover svg { fill: var(--gold-bright); transform: scale(1.1); filter: drop-shadow(0 0 5px var(--gold-raw)); }

/* ==========================================================================
   4. SERVICES & FORFAITS
   ========================================================================== */

.pricing-grid { width: 60vw; margin-left: 20vw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; }

.pricing-card { padding: 3rem 2rem; text-align: center; position: relative; }
.pricing-card.featured { border: 1px solid var(--gold-raw); padding: 4.5rem 2.5rem; box-shadow: 0 0 30px var(--hover-bg); }

.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold-linear); color: #000; padding: 0.4rem 1.5rem; border-radius: 2px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.pricing-icon { font-size: 2.5rem; margin-bottom: 1.5rem; text-shadow: 0 0 20px var(--gold-raw); }
.pricing-card h3 { font-family: 'Syne', sans-serif; font-size: 1.6rem; margin-bottom: 1rem; color: var(--text-pure); font-weight: 700; }
.pricing-desc { color: var(--text-dark); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2.5rem; height: 3.5rem; }
.pricing-price { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 700; background: var(--gold-linear); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--fine-line); }
.pricing-features { list-style: none; text-align: left; }
.pricing-features li { color: var(--text-pure); font-size: 0.95rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; }
.pricing-features li::before { content: '✓'; color: var(--gold-raw); font-weight: bold; font-size: 1.2rem; }

/* ==========================================================================
   5. CONTACT 
   ========================================================================== */

.contact-layout { width: 60vw; margin-left: 20vw; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }

.contact-info { padding: 3rem; }
.contact-info h3 { font-family: 'Syne', sans-serif; font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--gold-bright); font-weight: 700; }
.contact-info p { color: var(--text-dark); line-height: 1.7; margin-bottom: 2.5rem; font-size: 1rem;}

.info-item { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; color: var(--text-pure); font-size: 1rem; }
.info-icon { width: 45px; height: 45px; background: var(--hover-bg); border-radius: 4px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--gold-raw); color: var(--gold-raw); font-size: 1.2rem; }

.contact-form-container { padding: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.8rem; }
.form-group label { color: var(--gold-raw); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.form-group input, .form-group textarea { background: rgba(0,0,0,0.3); border: 1px solid var(--fine-line); border-radius: 4px; padding: 1.2rem; color: var(--text-pure); font-size: 1rem; transition: all 0.3s ease; resize: none; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold-raw); box-shadow: 0 0 15px var(--hover-bg); }

.btn-primary { background: var(--gold-linear); color: #000; padding: 1.2rem 3rem; font-family: 'Syne', sans-serif; font-weight: 700; border: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; border-radius: 2px; cursor: pointer; transition: all 0.3s ease; align-self: flex-start; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px var(--gold-glow); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.editorial-footer { padding: 3rem 20vw 4rem 20vw; border-top: 1px solid var(--fine-line); margin-top: 5rem; }
.footer-content { display: flex; justify-content: space-between; font-size: 0.8rem; letter-spacing: 2px; color: var(--gold-raw); font-weight: 600; text-transform: uppercase; }

/* ==========================================================================
   PAGES DE DÉTAILS ANNEXES
   ========================================================================== */

.layout-minecraft, .layout-trading, .layout-killer, .layout-tva, .layout-boutique, .layout-fivem { width: 60vw; margin-left: 20vw; padding: 2rem 0 8rem 0; position: relative; z-index: 5; }
.retour-minecraft, .retour-trading, .retour-killer, .retour-tva, .retour-boutique, .retour-fivem { display: inline-block; font-family: 'Cinzel', serif; font-size: 0.85rem; margin-bottom: 4rem; margin-left: 20vw; text-decoration: none; color: var(--gold-raw); letter-spacing: 2px; text-transform: uppercase; transition: all 0.3s ease; }
.retour-minecraft:hover, .retour-trading:hover, .retour-killer:hover, .retour-tva:hover, .retour-boutique:hover, .retour-fivem:hover { color: var(--gold-bright); text-shadow: 0 0 10px var(--gold-glow); transform: translateX(-5px); }
.title-minecraft, .title-trading, .title-killer, .title-tva, .title-boutique, .title-fivem { font-family: 'Syne', sans-serif; font-size: 4.5rem; line-height: 1; letter-spacing: -1px; margin-bottom: 2.5rem; text-transform: uppercase; }
.paragraph-minecraft, .paragraph-trading, .paragraph-killer, .paragraph-tva, .paragraph-boutique, .paragraph-fivem { color: var(--text-dark); font-size: 1.15rem; line-height: 1.8; margin-bottom: 2rem; }
[class^="specs-block-"] { border-top: 1px solid var(--fine-line); margin-top: 4rem; padding-top: 2rem; }
[class^="specs-title-"] { font-family: 'Cinzel', serif; color: var(--gold-raw); font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
[class^="specs-details-"] { font-size: 1rem; color: var(--text-pure); }
.link-killer, .link-fivem { display: inline-block; margin-top: 2.5rem; background: var(--gold-linear); color: #000; padding: 1rem 2rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; text-decoration: none; transition: all 0.3s ease; }
.link-killer:hover, .link-fivem:hover { transform: translateY(-3px); box-shadow: 0 10px 20px var(--gold-glow); }

/* ==========================================================================
   VERSION MOBILE SÉPARÉE
   ========================================================================== */

@media (max-width: 950px) {
    .navbar { padding: 1.5rem 5vw; flex-direction: column; gap: 1.5rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .theme-btn { margin-left: 0; padding: 0.6rem 1.5rem; }
    
    .section-title { width: 100%; margin-left: 0; font-size: 2.5rem; margin-bottom: 4rem; text-align: center; padding: 0 5vw; }
    
    .hero-editorial { width: 100%; padding: 0 5vw; margin-top: 3rem; margin-bottom: 5rem; text-align: center; }
    .hero-editorial h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
    
    .about-grid, .projects-grid, .pricing-grid, .contact-layout { 
        width: 90vw; 
        margin-left: 5vw; 
        grid-template-columns: 1fr; 
        gap: 2.5rem; 
    }
    
    .about-card { padding: 2.5rem 1.5rem; text-align: center; }
    .timeline { margin-top: 3rem; border-left: none; padding-left: 0; }
    .timeline-dot { display: none; }
    .timeline-item { text-align: center; border-bottom: 1px solid var(--fine-line); padding-bottom: 2rem; }
    .timeline-item:last-child { border-bottom: none; }
    .skills-category h4 { text-align: center; }
    .skills-tags { justify-content: center; }
    .stats-row { flex-direction: column; gap: 2.5rem; }
    
    .project-content { padding: 2rem 1.5rem; text-align: center; }
    .project-tags { justify-content: center; }
    .project-actions { flex-direction: column; gap: 1.5rem; }
    .btn-project { width: 100%; text-align: center; }
    .project-icons { justify-content: center; width: 100%; }
    
    .pricing-card.featured { padding: 3rem 2rem; }
    
    .contact-info, .contact-form-container { padding: 2rem 1.5rem; text-align: center; }
    .info-item { justify-content: center; }
    .btn-primary { width: 100%; text-align: center; }

    .editorial-footer { padding: 3rem 5vw; text-align: center; }
    .footer-content { flex-direction: column; gap: 1.5rem; align-items: center; }
    
    .layout-minecraft, .layout-trading, .layout-killer, .layout-tva, .layout-boutique, .layout-fivem { width: 90vw; margin-left: 5vw; padding: 2rem 0 6rem 0; text-align: center; }
    .retour-minecraft, .retour-trading, .retour-killer, .retour-tva, .retour-boutique, .retour-fivem { margin-left: 0; text-align: center; width: 100%; display: block; }
    .title-minecraft, .title-trading, .title-killer, .title-tva, .title-boutique, .title-fivem { font-size: clamp(2.5rem, 10vw, 3.5rem); text-align: center; }
    .paragraph-minecraft, .paragraph-trading, .paragraph-killer, .paragraph-tva, .paragraph-boutique, .paragraph-fivem { text-align: center; }
    [class^="specs-block-"] { text-align: center; }
    .link-killer, .link-fivem { width: 100%; text-align: center; }
}