/* Fond d'architecture partage - dessins importes de Projet_Design/variantes/accueil */
.content-scene {
    position: relative;
    overflow: hidden;
}

.content-scene > section:not(.filters-section) {
    position: relative;
    z-index: 1;
}

.architecture-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.arch-drawing {
    position: absolute;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    color: var(--accent-ink);
    opacity: 0.15;
}

.arch-construction {
    stroke-width: 1;
    stroke-dasharray: 5 7;
    opacity: 0.6;
}

.arch-volumes { width: clamp(180px, 24vw, 320px); left: -88px; top: var(--space-2xl); }
.arch-mechanics { width: clamp(170px, 22vw, 290px); right: -72px; top: 28%; }
.arch-system { width: clamp(200px, 27vw, 360px); right: max(var(--space-lg), calc((100% - 1200px) / 2)); top: 45%; }
.arch-plan { width: clamp(240px, 36vw, 480px); left: -72px; bottom: var(--space-2xl); }
.arch-pipeline { width: clamp(150px, 19vw, 260px); right: -60px; top: 6%; }
.arch-steps { width: clamp(200px, 28vw, 380px); left: -56px; top: 58%; }
.arch-ast { width: clamp(200px, 26vw, 340px); left: -40px; top: 10%; }
.arch-network { width: clamp(210px, 27vw, 360px); right: -50px; top: 38%; }
.arch-maze { width: clamp(220px, 30vw, 400px); left: -60px; bottom: 6%; }

.arch-volume-motion, .arch-gear-rotor {
    transform-box: fill-box;
    transform-origin: center;
}

.arch-flow {
    stroke: var(--ink);
    stroke-width: 2;
    stroke-dasharray: 4 22;
}

.arch-flow-orange {
    stroke: var(--accent-orange);
    stroke-width: 2;
    stroke-dasharray: 4 22;
}

.arch-trace {
    stroke: var(--ink);
    stroke-width: 2;
    stroke-dasharray: 1;
}

html.motion-enabled .arch-gear-rotor {
    animation: architecture-gear 80s linear infinite;
}

html.motion-enabled .arch-volume-motion {
    animation: architecture-volume 26s ease-in-out infinite;
}

html.motion-enabled .arch-flow,
html.motion-enabled .arch-flow-orange {
    animation: architecture-flow 5s linear infinite;
}

html.motion-enabled .arch-trace {
    animation: architecture-draft 24s ease-in-out infinite;
}

.arch-drawing:not(.is-in-view) *,
html.scene-paused .arch-drawing * {
    animation-play-state: paused !important;
}

@keyframes architecture-gear {
    to { transform: rotate(360deg); }
}

@keyframes architecture-volume {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes architecture-flow {
    to { stroke-dashoffset: -52; }
}

@keyframes architecture-draft {
    0%, 10% { stroke-dashoffset: 1; opacity: 0; }
    18% { opacity: 1; }
    60%, 82% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

html[data-theme="dark"] .arch-flow,
html[data-theme="dark"] .arch-trace {
    stroke: var(--concrete);
}

@media (max-width: 1024px) {
    .arch-system {
        right: -160px;
        top: 40%;
    }
}

@media (max-width: 768px) {
    .arch-drawing {
        opacity: 0.1;
    }

    .arch-volumes {
        left: -100px;
    }

    .arch-system {
        right: -150px;
        top: 34%;
    }

    .arch-mechanics, .arch-plan {
        display: none;
    }

    .arch-pipeline {
        right: -80px;
    }

    .arch-steps {
        left: -90px;
    }

    .arch-ast {
        left: -90px;
    }

    .arch-network {
        right: -110px;
    }

    .arch-maze {
        left: -110px;
    }
}
