/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --text-primary: #e0e0e8;
    --text-secondary: #a0a0b0;
    --accent-cyan: #00d9ff;
    --accent-blue: #0066ff;
    --accent-purple: #7b61ff;
    --glow-cyan: rgba(0, 217, 255, 0.4);
    --glow-blue: rgba(0, 102, 255, 0.3);
    --border-color: rgba(160, 160, 176, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.logo-link:hover .logo {
    filter: brightness(1) drop-shadow(0 0 10px var(--glow-cyan));
}

.logo-link:hover {
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    padding-top: 80px; /* Espace pour le header fixe */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('pictures/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(17, 17, 24, 0.85) 100%);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: scan 3s linear infinite;
    z-index: 10;
    box-shadow: 0 0 10px var(--glow-cyan);
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

.glow-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--glow-cyan));
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--glow-cyan));
    }
    50% {
        filter: drop-shadow(0 0 30px var(--glow-cyan)) drop-shadow(0 0 40px var(--glow-blue));
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.barghest-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.barghest-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

.hero-secondary {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--accent-cyan);
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.hero-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(0, 217, 255, 0.05);
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--glow-cyan);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ============================================
   PRESENTATION SECTION
   ============================================ */

.presentation {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.title-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.presentation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.presentation-text .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.presentation-text p {
    margin-bottom: 1.5rem;
}

.presentation-visual {
    position: relative;
}

.visual-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.presentation-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.visual-container:hover .presentation-image {
    opacity: 1;
}

.visual-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    border-radius: 8px;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.3s ease;
}

.visual-container:hover .visual-glow {
    opacity: 0.3;
}

/* ============================================
   TECH AXES SECTION
   ============================================ */

.tech-axes {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.axis-card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.axis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.axis-card:hover::before {
    left: 100%;
}

.axis-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.axis-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.axis-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.axis-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   STATUS SECTION
   ============================================ */

.status {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.status-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.status-terminal {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}

.terminal-text {
    color: var(--text-secondary);
}

.status-value {
    color: var(--accent-cyan);
    font-weight: 500;
}

.terminal-cursor {
    color: var(--accent-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.status-info {
    padding: 2rem 0;
}

.status-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.status-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 32px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-color);
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 3px solid var(--bg-primary);
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--glow-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
    flex: 1;
}

.timeline-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-main {
    margin-bottom: 2rem;
}

.footer-logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(0.8);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
    opacity: 1;
    filter: brightness(0.9) drop-shadow(0 0 10px var(--glow-cyan));
}

.footer-logo-link:hover {
    transform: translateY(-2px);
}

.footer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-cyan);
}

.footer-copyright {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-mention {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.footer-line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 0 auto;
    opacity: 0.3;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .status-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .axes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-content {
        padding: 0 1.5rem;
    }

    .logo {
        height: 35px;
    }

    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }

    .footer-logo {
        height: 40px;
    }

    .presentation,
    .tech-axes,
    .status {
        padding: 4rem 0;
    }

    .axis-card {
        padding: 2rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }

    .presentation-text .lead {
        font-size: 1.1rem;
    }

    .status-title {
        font-size: 2rem;
    }
}

