/* ========================================
   ROADMAP PROJET - CSS DÉDIÉ
   ======================================== */

/* Hero Small */
.hero-small {
    padding: 80px 0 60px;
    min-height: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Downloads Section */
.section-downloads {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.2);
}

.download-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
}

.download-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    min-height: 45px;
}

/* Timeline Overview */
.section-timeline-overview {
    padding: 80px 0;
    background: #0f0f1e;
}

.timeline-overview {
    display: grid;
    gap: 40px;
    margin-top: 50px;
}

.timeline-stage {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-stage:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: -10px 0 30px rgba(79, 172, 254, 0.15);
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(79, 172, 254, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.stage-header h3 {
    flex: 1;
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
}

.stage-duration {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.stage-content {
    padding: 30px;
}

.stage-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.stage-content ul li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: start;
    gap: 12px;
    font-size: 1.05rem;
}

.stage-content ul li i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.stage-milestone {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
}

.stage-milestone.critical {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

.stage-milestone.success {
    background: rgba(76, 209, 55, 0.1);
    border-left-color: #4cd137;
}

.stage-milestone i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.stage-milestone.critical i {
    color: #ff6b6b;
}

.stage-milestone.success i {
    color: #4cd137;
}

/* Phases Section */
.section-phases {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.phases-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Phase Cards */
.phase-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-card.hidden {
    display: none;
}

.phase-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.15);
}

.phase-card.critical {
    border-left: 5px solid #ff6b6b;
}

.phase-card.highlight {
    border-left: 5px solid #ffd93d;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    user-select: none;
}

.phase-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.phase-badge {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.phase-badge.critical {
    background: #ff6b6b;
}

.phase-info {
    flex: 1;
}

.phase-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #fff;
}

.badge-critical {
    display: inline-block;
    padding: 4px 12px;
    background: #ff6b6b;
    color: #fff;
    font-size: 0.75rem;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-meta {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.phase-meta i {
    margin-right: 6px;
    color: var(--primary-color);
}

.phase-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.phase-header.active .phase-toggle {
    transform: rotate(180deg);
}

.phase-content {
    display: none;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.phase-content.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phase-milestone {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 18px 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.phase-milestone i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.phase-milestone.critical {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

.phase-milestone.critical i {
    color: #ff6b6b;
}

/* GO/NO-GO Criteria */
.go-nogo-criteria {
    background: rgba(255, 107, 107, 0.05);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.go-nogo-criteria h4 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.go-nogo-criteria ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.go-nogo-criteria ul li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: start;
    gap: 12px;
}

.go-nogo-criteria ul li i {
    color: #4cd137;
    margin-top: 3px;
}

.warning-text {
    color: #ff6b6b;
    font-weight: 600;
    margin: 15px 0 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
}

.warning-text i {
    margin-right: 8px;
}

/* Phase Tasks */
.phase-tasks {
    margin-top: 25px;
}

.phase-tasks h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.phase-tasks ul {
    list-style: none;
    padding: 0;
}

.phase-tasks > ul > li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.phase-tasks > ul > li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 172, 254, 0.3);
}

.phase-tasks > ul > li > strong {
    color: #fff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.highlight-text {
    color: #ffd93d !important;
}

.task-duration {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(79, 172, 254, 0.2);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.phase-tasks > ul > li > p {
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0 0;
    font-size: 0.95rem;
}

/* Subtasks */
.subtasks {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subtasks > p > strong {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.subtasks ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.subtasks ul li {
    padding: 8px 0 8px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
}

.subtasks ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.highlight-box {
    background: rgba(255, 217, 61, 0.05);
    border: 1px solid rgba(255, 217, 61, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.highlight-box > p > strong {
    color: #ffd93d;
}

.highlight-box ul li:before {
    color: #ffd93d;
}

/* Risks Section */
.section-risks {
    padding: 80px 0;
    background: #0f0f1e;
}

.risks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.risk-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.risk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.risk-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.risk-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.risk-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.risk-level {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-level.high {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.risk-level.medium {
    background: rgba(255, 177, 66, 0.2);
    color: #ffb142;
    border: 1px solid #ffb142;
}

.risk-content {
    padding: 25px;
}

.risk-content p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
}

.risk-content p strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.risk-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.risk-content ul li {
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.risk-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4cd137;
    font-weight: 700;
}

/* Budget Section */
.section-budget {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.budget-summary {
    max-width: 900px;
    margin: 50px auto 0;
}

.budget-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.budget-item {
    text-align: center;
}

.budget-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.budget-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.budget-separator {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
}

.budget-breakdown h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.budget-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budget-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.category-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.category-bar {
    position: relative;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    transition: width 1s ease;
}

.bar-label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Section */
.section-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .timeline-stage:hover {
        transform: none;
    }

    .stage-header {
        flex-direction: column;
        align-items: start;
    }

    .stage-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stage-header h3 {
        font-size: 1.4rem;
    }

    .phase-header {
        flex-wrap: wrap;
    }

    .phase-badge {
        order: -1;
    }

    .phase-toggle {
        margin-left: auto;
    }

    .budget-value {
        font-size: 2.5rem;
    }

    .budget-range {
        flex-direction: column;
        gap: 20px;
    }

    .budget-separator {
        transform: rotate(90deg);
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

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

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

    .phases-filter {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}