/* COMPOSANTS PARTAGÉS — sections, boutons, badges IA, bandeau CTA.
   Chargé par index.html et pages/agents-ia.html, après base.css. */

/* ===== CONTENEUR ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6.5rem 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-dark {
    background: var(--navy-deep);
    color: var(--on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--on-dark);
}

.section-head {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 3rem;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 3.25rem;
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.12;
}

.section-lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--muted);
}

.section-dark .section-lead {
    color: var(--on-dark-muted);
}

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.section-dark .eyebrow {
    color: var(--secondary);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.375rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--on-dark);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===== BADGE IA ===== */
.chip-ia {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--ai-bg);
    color: var(--ai-text);
    white-space: nowrap;
}

/* ===== CARTES ===== */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.card h3 {
    font-size: 1.25rem;
}

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

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-min, 260px)), 1fr));
    gap: 1.25rem;
}

/* ===== BANDEAU CTA ===== */
.cta-band {
    padding: 0 0 6.5rem;
}

.cta-box {
    background: var(--navy-deep);
    color: var(--on-dark);
    border-radius: 20px;
    padding: 3.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-box :focus-visible {
    outline-color: var(--secondary);
}

.cta-box-text {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-box h2 {
    color: var(--on-dark);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.cta-box p {
    color: var(--on-dark-muted);
    font-size: 1.0625rem;
}


/* ===== EN-TÊTE DES PAGES INTÉRIEURES ===== */
.page-hero {
    /* La navbar est en position fixe */
    padding: calc(82px + 4.5rem) 0 4.5rem;
}

.page-hero-content {
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
}

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

/* ===== BLOCS TEXTE + VISUEL ===== */
.feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
}

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

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

.feature-text h3 {
    font-size: 1.875rem;
}

.feature-text p {
    color: var(--muted);
    line-height: 1.7;
}

.feature-text .feature-ai {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9375rem;
}

.feature-img {
    flex: 1 1 520px;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(18, 33, 58, 0.12);
}

.feature-img-plain {
    max-width: 520px;
    border: 0;
    box-shadow: none;
}

/* ===== LISTE À COCHES ===== */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
    color: var(--primary);
    font-size: 0.875rem;
}

/* ===== CHIFFRES ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary);
}

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

/* ===== LIEN FLÉCHÉ ===== */
.link-arrow {
    font-weight: 600;
    color: var(--primary-dark);
}

.link-arrow:hover {
    color: var(--navy-deep);
}

/* ===== ENCART eCMR ===== */
.ecmr-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--blue-line);
    background: var(--blue-soft);
}

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

.ecmr-steps {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ecmr-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border);
}

.ecmr-steps li > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ecmr-steps strong {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--navy-deep);
}

.ecmr-steps li > div > span {
    font-size: 0.875rem;
    color: var(--muted);
}

.ecmr-step-num {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }

    .page-hero {
        padding: calc(70px + 3rem) 0 3.5rem;
    }

    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .feature-img {
        flex-basis: auto;
    }

    .ecmr-box {
        padding: 1.75rem 1.25rem;
        gap: 2rem;
    }

    .cta-box {
        padding: 2.25rem 1.5rem;
    }
}

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