/* ============================================
   TRANSMISSION CRYPTO™ - MAIN STYLESHEET
   ============================================ */

/* Base Styles */
body {
    background-color: #050505;
    color: #E5E5E5;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* Tooltip Styles */
.tech-term {
    cursor: help;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.tech-term:hover {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

/* Floating Tooltip Element */
#custom-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(0.625rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 17.5rem;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(0.5rem);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.5);
}

#custom-tooltip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0.125rem;
    background: #D4AF37;
}

#custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0.3;
    pointer-events: none;
}

/* Grid Items for Crypto Sensu Section */
.agency-grid-item {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background-color 0.5s ease;
}

.agency-grid-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.agency-grid-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.5s ease;
}

.agency-grid-item:hover::after {
    width: 100%;
}

@media (max-width: 48rem) {
    .agency-grid-item {
        border-right: none;
    }
}

/* Tab Styles */
.tab-btn.active {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(0.625rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Persona Tab Styles */
.persona-tab {
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    padding-bottom: 0.9375rem;
    position: relative;
    letter-spacing: 0.05em;
}

.persona-tab:hover {
    opacity: 0.7;
}

.persona-tab.active {
    opacity: 1;
    color: #D4AF37;
}

.persona-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.persona-tab.active::after {
    width: 100%;
}

.journey-container {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.journey-container.active {
    display: flex;
    opacity: 1;
    gap: 1.5rem; /* Espacement réduit entre les nodes (24px au lieu de 32px) */
}

/* Lock Screen */
#lock-screen {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#lock-screen.unlocked {
    transform: translateY(-100%);
}

/* Reveal Button Animation */
.reveal-btn-line {
    transition: width 0.5s ease-out;
}

.reveal-btn:hover .reveal-btn-line {
    width: 100%;
}

/* Scramble Fix: Fixed Width Container */
.scramble-container {
    display: inline-block;
    min-width: 20rem;
    text-align: left;
    white-space: nowrap;
}

@media (max-width: 48rem) {
    .scramble-container {
        min-width: 100%;
        text-align: left;
        white-space: normal;
        display: block;
    }
}

/* Horizontal Scroll Section */
.h-scroll-container {
    width: 400%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
}

.h-panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    box-sizing: border-box;
}

/* Mobile Adaptation - La Méthode Section */
@media (max-width: 1023px) {
    #scroll-wrapper {
        height: auto;
        overflow: visible;
    }

    .h-scroll-container {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .h-panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Mobile Card Design */
    .method-mobile-card {
        width: 100%;
        padding: 2.5rem 1.5rem;
        position: relative;
        opacity: 0;
        transform: translateY(2rem);
        animation: methodCardFadeIn 0.8s ease-out forwards;
        background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.3) 100%);
    }

    .method-mobile-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .method-mobile-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .method-mobile-card:nth-child(3) {
        animation-delay: 0.3s;
    }

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

    .method-mobile-number {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-family: 'Playfair Display', serif;
        font-size: 8rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.03);
        line-height: 1;
        z-index: 0;
    }

    .method-mobile-content {
        position: relative;
        z-index: 10;
        max-width: 100%;
    }

    .method-mobile-label {
        display: block;
        color: #D4AF37;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        margin-bottom: 1rem;
        font-weight: 500;
    }

    .method-mobile-title {
        font-family: 'Playfair Display', serif;
        font-size: 2.25rem;
        font-weight: 600;
        color: #ffffff;
        line-height: 1.2;
        margin-bottom: 2.5rem;
        letter-spacing: -0.02em;
    }

    .method-mobile-subtitle {
        display: block;
        font-size: 1.5rem;
        font-weight: 400;
        font-style: italic;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 0.5rem;
    }

    .method-mobile-visual {
        width: 100%;
        margin: 2.5rem 0;
        padding: 2rem 0;
    }

    /* Capsule Visual (Step 1) */
    .method-mobile-capsule {
        width: 10rem;
        height: 16rem;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: linear-gradient(180deg, rgba(17, 17, 17, 0.8) 0%, rgba(0, 0, 0, 1) 100%);
        box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .method-mobile-capsule::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

    .method-mobile-capsule-line {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
    }

    .method-mobile-capsule-text {
        text-align: center;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.625rem;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    /* Separation Visual (Step 2) */
    .method-mobile-separation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .method-mobile-separation-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .method-mobile-separation-icon {
        width: 4.5rem;
        height: 4.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.4);
        transition: all 0.4s ease;
    }

    .method-mobile-separation-icon-active {
        border-color: rgba(212, 175, 55, 0.3);
        background: rgba(212, 175, 55, 0.05);
        color: #D4AF37;
    }

    .method-mobile-separation-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.625rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: rgba(255, 255, 255, 0.4);
    }

    .method-mobile-separation-label-active {
        color: #D4AF37;
    }

    .method-mobile-separation-divider {
        width: 1px;
        height: 5rem;
        background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    }

    /* Blockchain Visual (Step 3) */
    .method-mobile-blockchain {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2.5rem 1rem;
    }

    .method-mobile-hash {
        text-align: center;
        width: 100%;
        max-width: 18rem;
    }

    .method-mobile-hash-symbol {
        font-family: 'Playfair Display', serif;
        font-size: 5rem;
        font-weight: 600;
        background: linear-gradient(180deg, rgba(251, 245, 213, 1) 0%, rgba(212, 175, 55, 1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
        margin-bottom: 1rem;
    }

    .method-mobile-hash-value {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.3);
        word-break: break-all;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .method-mobile-hash-indicator {
        width: 0.5rem;
        height: 0.5rem;
        background: #22c55e;
        border-radius: 50%;
        margin: 0 auto;
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.7;
            transform: scale(1.1);
        }
    }

    .method-mobile-text {
        color: rgba(255, 255, 255, 0.6);
        font-size: 1rem;
        line-height: 1.75;
        font-weight: 300;
        margin-top: 1.5rem;
    }

    .method-mobile-text strong {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }

    .method-mobile-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        color: #ffffff;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        border-bottom: 1px solid #D4AF37;
        padding-bottom: 0.25rem;
        transition: all 0.3s ease;
        background: none;
        border-top: none;
        border-left: none;
        border-right: none;
        cursor: pointer;
    }

    .method-mobile-link:hover {
        color: #D4AF37;
        border-bottom-color: #D4AF37;
    }

    .method-mobile-link i {
        transition: transform 0.3s ease;
    }

    .method-mobile-link:hover i {
        transform: translate(0.25rem, -0.25rem);
    }

    /* Smooth scroll behavior for mobile */
    .h-panel:last-child {
        border-bottom: none;
        padding-bottom: 4rem;
    }

    /* Enhanced spacing for mobile intro */
    .h-panel:first-child {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    /* Touch-friendly interactions */
    .method-mobile-card {
        -webkit-tap-highlight-color: transparent;
    }

    /* Optimize animations for mobile performance */
    @media (prefers-reduced-motion: reduce) {
        .method-mobile-card {
            animation: none;
            opacity: 1;
            transform: none;
        }

        .method-mobile-hash-indicator {
            animation: none;
        }
    }
}

/* Awwwards Style Card */
.awwwards-card {
    background: transparent;
}

/* Timeline Modern - Refonte complète style Awwwards */
.timeline-modern-wrapper {
    position: relative;
    padding: 3rem 0;
}

.journey-modern {
    display: none;
    position: relative;
    padding: 2rem 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.journey-modern.active {
    display: block;
    opacity: 1;
}

/* Ligne centrale intégrée via pseudo-élément - UNIQUEMENT pour le journey actif */
.journey-modern.active::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.1) 8px,
        rgba(255, 255, 255, 0.1) 10px
    );
    z-index: 1;
    pointer-events: none;
}

.journey-modern.active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: var(--line-height, 0);
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #D4AF37, #F4D03F, #D4AF37);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    z-index: 2;
    pointer-events: none;
    transition: height 0.1s linear;
}

@media (max-width: 48rem) {
    .journey-modern::before,
    .journey-modern::after {
        left: 1.5rem;
    }
}

/* Structure des steps */
.journey-steps {
    position: relative;
    z-index: 10;
}

.step-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    min-height: 120px;
}

@media (max-width: 48rem) {
    .step-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

.step-content {
    opacity: 0.5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(1rem);
    filter: blur(2px);
}

.step-item.active .step-content {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.step-left {
    text-align: right;
    padding-right: 2rem;
}

.step-right {
    text-align: left;
    padding-left: 2rem;
}

@media (max-width: 48rem) {
    .step-left,
    .step-right {
        text-align: left;
        padding: 0 1.5rem;
    }
}

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.step-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 20;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
}

.step-item.active .step-marker {
    border-color: #D4AF37;
    background: #000;
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2);
    transform: scale(1.2);
}

.step-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #D4AF37;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item.active .step-marker::after {
    opacity: 1;
}

/* step-spacer: espace pour équilibrer la grille */
@media (max-width: 48rem) {
    .step-spacer {
        display: none;
    }
}

