/*
Theme Name: Armand Yomi - Nanotech Style
Theme URI: https://armandyomi.com
Author: Armand Yomi
Author URI: https://armandyomi.com
Description: Thème portfolio avec menu horizontal constant, services hiérarchiques, galerie d'art, responsive.
Version: 6.0
License: GPL v2 or later
Text Domain: armandyomi
*/

/* ========== VARIABLES ========== */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --accent: #FBC926;
    --accent-dark: #e0b000;
    --primary-blue: #5385C4;
    --primary-dark: #274B78;
    --gray: #1a1a1a;
    --gray-light: #2a2a2a;
    --text-muted: #aaa;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    cursor: none;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ========== CURSEUR ========== */
#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

#cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(251, 201, 38, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

a:hover ~ #cursor,
button:hover ~ #cursor,
.project-item:hover ~ #cursor,
.service-item:hover ~ #cursor {
    width: 50px;
    height: 50px;
    background: rgba(251, 201, 38, 0.3);
    mix-blend-mode: normal;
}

/* ========== TYPOGRAPHIE ========== */
h1, h2, h3, h4, .logo, .hero-title, .about-title, .work-title, .services-title, .contact-title {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

/* ========== NAVIGATION (toujours visible) ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    transition: transform 0.3s ease-in-out, opacity 0.2s;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo a {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    position: relative;
}

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

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

.nav-links a:hover {
    opacity: 1;
}

/* Sous-menus déroulants (au survol) */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1001;
    list-style: none;
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.sub-menu li {
    width: 100%;
}

.sub-menu a {
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.65rem;
    white-space: nowrap;
}

.lang-switch {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-left: 1.5rem;
}
.lang-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}
.lang-list a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.lang-list a:hover,
.lang-list .current-lang a {
    opacity: 1;
    color: var(--accent);
}

/* ========== HERO ========== */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, var(--primary-dark), var(--black));
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(83,133,196,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83,133,196,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(251,201,38,0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--accent);
    display: inline-block;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: skew(0deg, 0deg); opacity: 1; }
    95% { transform: skew(0deg, 0deg); opacity: 1; }
    96% { transform: skew(5deg, 2deg); opacity: 0.8; }
    97% { transform: skew(-3deg, -1deg); opacity: 0.9; }
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1.5rem auto;
    color: rgba(255,255,255,0.7);
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-scroll:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ========== MARQUEE ========== */
.marquee-wrap {
    background: var(--gray);
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
}

.marquee-item span {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ========== SECTIONS COMMUNES ========== */
section {
    padding: 6rem 3rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(251,201,38,0.1);
    padding: 0.3rem 1rem;
    border-radius: 30px;
}

/* ========== ABOUT ========== */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========== WORK (PROJETS) ========== */
#work {
    background: var(--gray);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.work-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
}

.work-all {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 4px;
    transition: all 0.3s;
}

.work-all:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #111;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 25px -8px rgba(0,0,0,0.4);
}

.project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.project-item:hover .project-bg {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-cat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-name {
    transform: translateY(0);
}

.project-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.project-item:hover .project-arrow {
    opacity: 1;
}

.project-arrow a {
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    line-height: 1;
}

/* ========== SERVICES ========== */
#services {
    background: var(--black);
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.services-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
}

.services-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    align-self: flex-end;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.service-item:hover {
    padding-left: 1rem;
    background: rgba(83,133,196,0.1);
}

.service-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.service-item:hover .service-name {
    color: var(--accent);
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 30px;
    transition: all 0.3s;
}

.service-item:hover .tag {
    border-color: var(--accent);
    color: var(--accent);
}

.service-link {
    font-size: 1.2rem;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

.service-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Grille des sous-services */
.service-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-child-item {
    background: #111;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s;
}

.service-child-item:hover {
    transform: translateY(-5px);
}

/* ========== GALERIE D'ART ========== */
#art-gallery {
    background: var(--gray-light);
}
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}
.gallery-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}
.gallery-sub {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.art-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    aspect-ratio: 1/1;
    cursor: pointer;
}
.art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.art-item:hover .art-image {
    transform: scale(1.05);
}
.art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.art-item:hover .art-overlay {
    opacity: 1;
}
.art-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.art-cat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent);
}

/* ========== PROCESS (page services) ========== */
#process-page {
    padding: 6rem 3rem;
    background: var(--gray);
}
.process-main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 4rem;
    text-align: center;
}
.process-steps-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.process-step {
    background: #111;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}
.process-step:hover {
    transform: translateY(-5px);
    background: #1a1a1a;
}
.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(251,201,38,0.1);
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.step-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.step-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ========== TESTIMONIALS ========== */
#testimonial {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
}
.testimonial-inner {
    max-width: 800px;
    margin: 0 auto;
}
.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 0.8;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}
.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 2rem;
}
.quote-author {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* ========== CONTACT ========== */
#contact {
    text-align: center;
    padding: 6rem 2rem;
}
.contact-sup {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 1rem;
}
.contact-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}
.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 6px;
    transition: all 0.3s;
    margin-bottom: 2rem;
}
.contact-email:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: var(--black);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--accent-dark);
}

/* ========== FOOTER ========== */
footer {
    padding: 2rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: var(--black);
    color: var(--text-muted);
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
}
.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.6rem;
}
.footer-social {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-social a {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-social a:hover {
    color: var(--accent);
}

/* ========== ANIMATIONS REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== PAGE TRANSITION ========== */
#page-transition {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9990;
    pointer-events: none;
    transform: translateY(100%);
}
#page-transition.active {
    animation: pageReveal 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pageReveal {
    0% { transform: translateY(100%); }
    50% { transform: translateY(0%); }
    100% { transform: translateY(-100%); }
}

/* ========== RESPONSIVE (menu toujours visible, simple adaptation) ========== */
@media (max-width: 992px) {
    nav {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.65rem;
    }
    .lang-switch {
        margin-left: 1rem;
    }
    section {
        padding: 4rem 1.5rem;
    }
    #about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-item {
        grid-template-columns: 60px 1fr auto;
        gap: 1rem;
    }
    .service-tags {
        display: none;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .process-steps-page {
        grid-template-columns: 1fr 1fr;
    }
    footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 0.75rem;
    }
    .nav-links a {
        font-size: 0.6rem;
    }
    .logo a {
        font-size: 1.2rem;
    }
    .process-steps-page {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .service-item {
        grid-template-columns: 50px 1fr auto;
    }
}