/* --- CONFIGURATION GLOBALE --- */
:root {
    --atlas-bg: #0d0e0d;
    --atlas-surface: #161816;
    --atlas-lichen: #8fa382;
    --atlas-text: #d1d5cc;
    --atlas-text-dim: #888e87;
    --atlas-border: rgba(143, 163, 130, 0.15);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--atlas-bg);
    color: var(--atlas-text);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- COMPOSANT : BLUEPRINT HERO (MOBILE BASE) --- */
.atlas-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    background: var(--atlas-bg);
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--atlas-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--atlas-border) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black, transparent 85%);
    opacity: 0.3;
    pointer-events: none;
}

.hero-overlay {
    width: 100%;
    z-index: 2;
}

.blueprint-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--atlas-lichen);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.status-badge {
    align-self: flex-start;
    padding: 2px 8px;
    border: 1px solid var(--atlas-lichen);
    border-radius: 3px;
}

/* --- VISUEL 3D --- */
.visual-core {
    position: relative;
    width: 100%;
    margin: 20px 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atlas-render-3d {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(143, 163, 130, 0.1));
    transition: transform 0.4s ease;
}

.scanline {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--atlas-lichen), transparent);
    box-shadow: 0 0 10px var(--atlas-lichen);
    position: absolute;
    top: 0;
    z-index: 3;
    animation: scan 6s linear infinite;
}

.dimensions-overlay {
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--atlas-lichen);
}

.dim-line {
    flex-grow: 1;
    height: 1px;
    background: var(--atlas-border);
    margin: 0 10px;
    position: relative;
}

/* --- SPECS GRID --- */
.main-display {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.spec-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-item label {
    display: block;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--atlas-lichen);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.spec-item .value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--atlas-text);
}

.unit, .dim, .price {
    font-size: 0.75rem;
    color: var(--atlas-lichen);
    opacity: 0.7;
}

/* --- DESKTOP ENHANCEMENTS (min-width: 992px) --- */
@media (min-width: 992px) {
    .atlas-hero {
        padding: 80px 40px;
        justify-content: center;
    }

    .blueprint-header {
        flex-direction: row;
        justify-content: space-between;
        font-size: 10px;
    }

    .main-display {
        display: grid;
        grid-template-columns: 220px 1fr 220px;
        align-items: center;
        gap: 60px;
    }

    .visual-core {
        margin: 0;
    }

    .atlas-render-3d {
        max-width: 650px;
    }

    .spec-column {
        display: block;
    }

    .spec-item {
        margin-bottom: 40px;
    }

    .spec-item .value {
        font-size: 1.4rem;
    }
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* --- LOGBOOK SECTION --- */
.atlas-logbook {
    padding: 80px 20px;
    border-top: 1px solid var(--atlas-border);
}

.log-container {
    max-width: 850px;
    margin: 0 auto;
}

.log-header {
    text-align: center;
    margin-bottom: 60px;
}

.log-badge {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--atlas-lichen);
    border: 1px solid var(--atlas-lichen);
    padding: 2px 10px;
    font-size: 10px;
    margin-bottom: 15px;
}

.log-main-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 900;
    margin: 0;
}

.log-timeline {
    position: relative;
    padding-left: 25px;
    border-left: 1px solid var(--atlas-border);
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 7px;
    height: 7px;
    background: var(--atlas-lichen);
    border-radius: 50%;
}

.step-meta {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--atlas-lichen);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.log-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--atlas-text);
    margin: 25px 0;
    padding-left: 15px;
    border-left: 2px solid var(--atlas-lichen);
}

.tech-checklist {
    list-style: none;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 13px;
}

.tech-checklist li span {
    color: var(--atlas-lichen);
    margin-right: 10px;
}

.log-card {
    background: var(--atlas-surface);
    padding: 20px;
    border: 1px solid var(--atlas-border);
    margin-top: 20px;
}

.next-step-tag {
    display: inline-block;
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 9px;
    background: var(--atlas-lichen);
    color: var(--atlas-bg);
    padding: 4px 8px;
    font-weight: 800;
}


/* --- BOUTONS VIDÉO --- */

.log-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 8px 16px;
    border: 1px solid var(--atlas-lichen);
    color: var(--atlas-lichen);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.log-watch-link:hover {
    background: var(--atlas-lichen);
    color: var(--atlas-bg);
    box-shadow: 0 0 15px rgba(143, 163, 130, 0.4);
}

.log-video-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--atlas-border);
}

.log-video-cta p {
    font-size: 12px;
    color: var(--atlas-text-dim);
    margin-bottom: 15px;
}

.yt-button {
    display: inline-block;
    color: var(--atlas-text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    border-bottom: 2px solid var(--atlas-lichen);
    padding-bottom: 2px;
}

.yt-button:hover {
    color: var(--atlas-lichen);
}



/* --- ATLAS BUILD SECTION --- */
.atlas-build {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.build-header {
    margin-bottom: 60px;
    border-left: 4px solid var(--atlas-lichen);
    padding-left: 30px;
}

.build-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--atlas-lichen);
    letter-spacing: 3px;
}

.build-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.b-stat span { color: var(--atlas-lichen); margin-right: 5px; }

/* Grille de Modules */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.build-module {
    background: var(--atlas-surface);
    border: 1px solid var(--atlas-border);
    transition: all 0.3s ease;
}

.build-module:hover {
    border-color: var(--atlas-lichen);
    transform: translateY(-5px);
}

.module-img {
    position: relative;
    height: 200px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }

.module-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--atlas-lichen);
    color: var(--atlas-bg);
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 2px 6px;
    font-weight: 800;
}

.module-info { padding: 25px; }

.module-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.module-info p {
    font-size: 13px;
    color: var(--atlas-text-dim);
    line-height: 1.5;
}

/* Inventaire style "Liste de chargement" */
.gear-inventory {
    margin-top: 80px;
    border: 1px solid var(--atlas-border);
    padding: 30px;
}

.inventory-header {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--atlas-lichen);
    margin-bottom: 20px;
    text-align: center;
}

.inventory-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gear-item {
    padding: 10px 20px;
    border: 1px dashed var(--atlas-border);
    font-family: var(--font-mono);
    font-size: 11px;
    transition: 0.3s;
}

.gear-item:hover {
    border-color: var(--atlas-lichen);
    color: var(--atlas-lichen);
}

/* --- ENERGY & TERRACE VISUALS --- */
.circuit-view, .palette-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--atlas-lichen);
}

.node {
    border: 1px solid var(--atlas-lichen);
    padding: 10px;
    background: rgba(143, 163, 130, 0.1);
    position: relative;
}

.node::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 1px;
    height: 10px;
    background: var(--atlas-border);
}

.palette-view {
    width: 80px;
    height: 80px;
    border: 2px solid var(--atlas-lichen);
    background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(143, 163, 130, 0.1) 5px, rgba(143, 163, 130, 0.1) 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}