/* --- Header --- */
.page-header {
    padding: 160px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--white), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Verticale */
        .timeline-container {
            position: relative;
            max-width: 1000px;
            margin: 4rem auto;
            padding: 2rem 0;
        }
        /* La ligne centrale */
        .timeline-container::after {
            content: '';
            position: absolute;
            width: 4px;
            background-color: #00CEC9;
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            border-radius: 2px;
            box-shadow: 0 0 15px rgba(0, 206, 201, 0.4);
        }
        
        .timeline-step {
            padding: 10px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
            box-sizing: border-box;
            margin-bottom: 3rem;
            opacity: 0; /* Pour animation JS */
            transform: translateY(20px);
            transition: all 0.6s ease-out;
        }
        .timeline-step.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        .timeline-step.left { left: 0; text-align: right; }
        .timeline-step.right { left: 50%; text-align: left; }

        /* Les points sur la ligne */
        .timeline-step::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: -10px;
            background-color: #0f0f13;
            border: 4px solid #00CEC9;
            top: 25px;
            border-radius: 50%;
            z-index: 1;
            box-shadow: 0 0 10px #00CEC9;
        }
        .timeline-step.right::after { left: -10px; }

        .step-content {
            padding: 2rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            transition: transform 0.3s, background 0.3s;
        }
        .step-content:hover {
            transform: scale(1.02);
            background: rgba(255, 255, 255, 0.08);
            border-color: #00CEC9;
        }
        .step-number {
            font-family: 'JetBrains Mono', monospace;
            font-size: 3rem;
            font-weight: 700;
            color: rgba(0, 206, 201, 0.2);
            line-height: 1;
            margin-bottom: 0.5rem;
        }
        .timeline-step.left .step-number { display: block; text-align: right; }
        .timeline-step.right .step-number { display: block; text-align: left; }
        
        .step-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 1rem;
        }
        .step-desc {
            color: #ccc;
            line-height: 1.6;
            margin-bottom: 1rem;
        }
        .step-tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            justify-content: inherit;
        }
        .tag {
            font-size: 0.8rem;
            padding: 4px 10px;
            background: rgba(108, 92, 231, 0.2);
            color: #a29bfe;
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
        }

        /* Section Outils */
        .tools-section {
            padding: 5rem 0;
            background: #0f0f13;
        }
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
            text-align: center;
        }
        .tool-card {
            background: rgba(255,255,255,0.03);
            padding: 2rem 1rem;
            border-radius: 8px;
            transition: all 0.3s;
            border: 1px solid transparent;
        }
        .tool-card:hover {
            background: rgba(255,255,255,0.08);
            border-color: #6C5CE7;
            transform: translateY(-5px);
        }
        .tool-icon {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #fff;
        }
        .tool-name {
            font-family: 'Roboto', sans-serif;
            color: #ccc;
            font-size: 0.9rem;
        }

        /* Section IA Chat */
        .section-ia {
            padding: 5rem 0;
            background: linear-gradient(180deg, #0f0f13 0%, #15151e 100%);
        }
        .ia-layout {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 3rem;
            align-items: start;
        }
        .suggestions {
            margin-top: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .suggestion-btn {
            background: transparent;
            border: 1px solid #00CEC9;
            color: #00CEC9;
            padding: 1rem;
            text-align: left;
            border-radius: 6px;
            cursor: pointer;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            transition: all 0.3s;
        }
        .suggestion-btn:hover {
            background: #00CEC9;
            color: #0f0f13;
            font-weight: 700;
        }

        .chat-window {
            background: #1e1e24;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            display: flex;
            flex-direction: column;
            height: 500px;
        }
        .chat-header {
            background: #25252d;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .bot-identity {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .bot-avatar {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #00CEC9, #6C5CE7);
            border-radius: 50%;
            position: relative;
        }
        .bot-avatar::after {
            content: '';
            position: absolute;
            top: 5px; left: 5px; right: 5px; bottom: 5px;
            background: #25252d;
            border-radius: 50%;
        }
        .status-dot {
            height: 8px; width: 8px;
            background-color: #00b894;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }
        .status-text { font-size: 0.8rem; color: #aaa; }
        
        .chat-body {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
        }
        .message {
            margin-bottom: 1rem;
            max-width: 85%;
            padding: 0.8rem 1.2rem;
            border-radius: 8px;
            line-height: 1.5;
        }
        .bot-message {
            background: rgba(108, 92, 231, 0.15);
            color: #dfe6e9;
            border-left: 3px solid #6C5CE7;
            align-self: flex-start;
        }
        .user-message {
            background: rgba(0, 206, 201, 0.15);
            color: #dfe6e9;
            border-right: 3px solid #00CEC9;
            margin-left: auto;
            text-align: right;
        }
        
        .chat-input-area {
            padding: 1rem;
            background: #25252d;
            display: flex;
            gap: 1rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }
        #user-input {
            flex: 1;
            background: #1e1e24;
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.8rem 1rem;
            border-radius: 6px;
            color: #fff;
            font-family: 'JetBrains Mono', monospace;
            outline: none;
        }
        #user-input:focus { border-color: #00CEC9; }
        .send-btn {
            background: #00CEC9;
            border: none;
            width: 45px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }
        .send-btn:hover { background: #00b5b0; }
        .send-btn svg { stroke: #0f0f13; }

        /* Responsive Timeline */
        @media screen and (max-width: 768px) {
            .timeline-container::after { left: 31px; }
            .timeline-step { width: 100%; padding-left: 70px; padding-right: 25px; }
            .timeline-step::after { left: 21px; }
            .timeline-step.left, .timeline-step.right { left: 0; text-align: left; }
            .timeline-step.left .step-number, .timeline-step.right .step-number { text-align: left; }
            .ia-layout { grid-template-columns: 1fr; }
        }