/* =============================================
   SIMULATEUR ÉCOSYSTÈME — styles spécifiques
   ============================================= */

/* ====== HERO ====== */
.eco-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-h) 24px 80px;
    overflow: hidden;
}

/* Mini canvas décoratif dans le hero */
#eco-mini-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.eco-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
}

.eco-status-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: var(--accent2);
}

.eco-badge.secondary {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.25);
    color: var(--accent);
}

.eco-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2em, 5vw, 3.8em);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.eco-title .accent {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eco-subtitle {
    font-size: 1.05em;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 32px;
}

.eco-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.eco-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
    cursor: pointer;
    border: none;
}

.eco-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}

.eco-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16,185,129,0.45);
}

.eco-btn.secondary {
    background: var(--glass);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.eco-btn.secondary:hover {
    background: var(--glass-hover);
    color: var(--text);
    transform: translateY(-2px);
}

/* ====== MAIN LAYOUT ====== */
.eco-main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.eco-section { animation: fadeInUp 0.6s ease both; }

.eco-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eco-h2.centered { text-align: center; }

.eco-section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95em;
    margin-top: -16px;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ====== À PROPOS ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95em;
    margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-chip {
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(16,185,129,0.3);
}

.stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label-text {
    font-size: 0.72em;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ====== TECH GRID ====== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tech-card {
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.tech-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 12px;
}

.tech-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-card p {
    font-size: 0.82em;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ====== GALERIE ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-item {
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(16,185,129,0.3);
}

.gallery-placeholder {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85em;
}

.placeholder-icon { font-size: 2em; }

/* Pour remplacer le placeholder par une vraie image :
   <img src="chemin/vers/image.png" class="gallery-img"> */
.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 12px 16px;
    font-size: 0.82em;
    color: var(--text-muted);
    text-align: center;
}

.gallery-note {
    text-align: center;
    font-size: 0.8em;
    color: rgba(148,163,184,0.5);
    font-style: italic;
}

/* ====== ROADMAP ====== */
.roadmap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
    position: relative;
}

.roadmap-item {
    display: flex;
    gap: 24px;
    position: relative;
    animation: fadeInUp 0.5s ease both;
}

.roadmap-item:nth-child(1) { animation-delay: 0.05s; }
.roadmap-item:nth-child(2) { animation-delay: 0.12s; }
.roadmap-item:nth-child(3) { animation-delay: 0.18s; }
.roadmap-item:nth-child(4) { animation-delay: 0.24s; }
.roadmap-item:nth-child(5) { animation-delay: 0.30s; }

.rm-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.rm-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 22px;
    border: 2px solid var(--bg);
    z-index: 2;
}

/* States */
.roadmap-item.done .rm-dot { background: var(--accent2); box-shadow: 0 0 10px rgba(16,185,129,0.4); }
.roadmap-item.active .rm-dot { background: var(--accent); box-shadow: 0 0 14px rgba(59,130,246,0.5); }
.roadmap-item.future .rm-dot { background: rgba(255,255,255,0.1); border-color: var(--glass-border); }

/* Dot pulsant pour "en cours" */
.rm-dot.pulse {
    animation: rm-pulse 2s ease-in-out infinite;
}

@keyframes rm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}

.rm-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom, var(--glass-border), transparent);
    margin: 4px auto 0;
    min-height: 30px;
}

.rm-card {
    flex: 1;
    padding: 22px 24px;
    margin-bottom: 20px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.roadmap-item.done .rm-card { border-color: rgba(16,185,129,0.15); }
.roadmap-item.active .rm-card { border-color: rgba(59,130,246,0.25); box-shadow: 0 0 30px rgba(59,130,246,0.08); }
.roadmap-item.future .rm-card { opacity: 0.6; }

.rm-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}

.roadmap-item.future .rm-card:hover { opacity: 1; }

.rm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.rm-status {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.done-badge { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: var(--accent2); }
.active-badge { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: var(--accent); }
.future-badge { background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); color: var(--text-muted); }

.rm-phase {
    font-size: 0.72em;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rm-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.rm-card p {
    font-size: 0.87em;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.rm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rm-tags span {
    font-size: 0.7em;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .rm-card:hover { transform: none; }
}

@media (max-width: 480px) {
    .eco-title { font-size: 2em; letter-spacing: -0.5px; }

    .eco-actions { flex-direction: column; align-items: center; }

    .eco-btn { width: 100%; max-width: 280px; justify-content: center; }

    .tech-grid { grid-template-columns: 1fr; }

    .roadmap { padding-left: 4px; }

    .roadmap-item { gap: 14px; }

    .rm-card { padding: 16px; }
}
