/* PAGE AGENTS IA — tokens dans styles/base.css, composants partagés dans
   styles/components/sections.css */

/* ===== HERO ===== */
.ai-hero {
    /* La navbar est en position fixe */
    padding: calc(82px + 5.5rem) 0 5.5rem;
}

.ai-hero-content {
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.375rem;
}

.ai-hero .hero-title {
    font-size: clamp(2.375rem, 5vw, 3.75rem);
}

.ai-hero-lead {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--on-dark-muted);
    max-width: 720px;
}

/* ===== PRINCIPES ===== */
.principle-num {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== AGENTS ===== */
.agents-list {
    display: flex;
    flex-direction: column;
    gap: 7rem;
}

.agent-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.5rem;
}

.agent-row-reverse {
    flex-direction: row-reverse;
}

.agent-text {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    line-height: 1.15;
}

.agent-text > p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ===== MAQUETTES D'ÉCRAN ===== */
.mock {
    flex: 1 1 480px;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(18, 33, 58, 0.12);
    padding: 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.mock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.mock-head strong {
    color: var(--navy-deep);
    font-size: 0.9375rem;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    background: var(--bg-soft);
}

.mock-label {
    color: var(--muted);
}

.is-ok {
    color: var(--success);
    font-weight: 600;
}

.is-warning {
    color: var(--warning);
    font-weight: 600;
}

.mock-row.is-warning-bg {
    background: var(--warning-bg);
}

.mock-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 10px;
    background: var(--success-bg);
}

.mock-result strong {
    color: var(--success);
}

.mock-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.625rem;
    padding-top: 0.25rem;
}

.mock-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.mock-btn-primary {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-dark);
}

.mock-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.mock-bar span {
    display: block;
    height: 100%;
    background: var(--primary);
}

.mock-note {
    font-size: 0.8125rem;
    color: var(--muted);
}

.mock-driver {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-soft);
}

.mock-driver strong {
    color: var(--navy-deep);
}

.mock-bubble {
    max-width: 88%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.mock-bubble-user {
    align-self: flex-end;
    background: var(--primary);
    color: var(--on-dark);
    border-radius: 14px 14px 4px 14px;
}

.mock-bubble-ai {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px 14px 14px 4px;
}

.mock-input {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
}

.mock-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mock-pills span {
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--blue-line);
    background: var(--blue-soft);
    color: var(--navy-deep);
}

.mock-text {
    padding: 0.875rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    line-height: 1.6;
}

/* ===== NIVEAUX ===== */
.level-card {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-card h3 {
    font-size: 1.375rem;
}

.level-card p {
    color: var(--on-dark-muted);
}

.level-num {
    font-weight: 700;
    color: var(--secondary);
}

/* ===== FAQ ===== */
.faq {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list summary {
    cursor: pointer;
    padding: 1.125rem 0;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--navy-deep);
}

.faq-list details p {
    padding-bottom: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ai-hero {
        padding: calc(70px + 3rem) 0 4rem;
    }

    .agents-list {
        gap: 4.5rem;
    }

    .agent-row,
    .agent-row-reverse {
        flex-direction: column;
        align-items: stretch;
    }

    .mock {
        flex-basis: auto;
    }
}
