/* Page « Annoncer sur chicVoiture »   (prefixe : ap-) */
.ap {
    color: var(--text-main);
}

.ap-hero {
    padding: 56px 0 40px;
    text-align: center;
}

.ap-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.ap-hero h1 {
    max-width: 780px;
    margin: 0 auto 16px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--secondary);
}

.ap-hero p {
    max-width: 640px;
    margin: 0 auto 26px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ap-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
}

.ap-btn:hover {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.ap-btn.is-light {
    color: var(--secondary);
    background: #fff;
    border-color: var(--border);
}

.ap-btn.is-light:hover {
    color: var(--primary);
    background: #fff;
    border-color: var(--primary);
}

.ap-section {
    padding: 36px 0;
}

.ap-section > h2 {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
}

.ap-lead {
    max-width: 680px;
    margin-bottom: 26px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ap-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ap-point {
    padding: 22px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.ap-point svg {
    margin-bottom: 12px;
    color: var(--primary);
}

.ap-point h3 {
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--secondary);
}

.ap-point p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ---------- Schemas des pages ---------- */
.ap-views {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ap-view h3 {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--secondary);
}

.ap-wire {
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.ap-wire-bar {
    height: 14px;
    margin-bottom: 10px;
    background: var(--secondary);
    border-radius: 6px;
}

.ap-wire-cols {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 10px;
}

.ap-wire-side,
.ap-wire-main {
    display: grid;
    align-content: start;
    gap: 8px;
}

.ap-block {
    min-height: 26px;
    background: #eef1f5;
    border-radius: 6px;
}

.ap-hl {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    border-radius: 8px;
}

.ap-hl b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
}

.ap-wire-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ap-card {
    height: 62px;
    background: #eef1f5;
    border-radius: 8px;
}

.ap-gal {
    height: 90px;
    background: #dfe5ec;
    border-radius: 8px;
}

/* ---------- Fiches des emplacements ---------- */
.ap-slots {
    display: grid;
    gap: 16px;
}

.ap-slot {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.ap-slot-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 12px;
    background: var(--bg-app);
    border-radius: 14px;
}

.ap-slot-preview img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ap-slot-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ap-slot-head b {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
}

.ap-slot-head h3 {
    font-size: 20px;
    color: var(--secondary);
}

.ap-slot p {
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ap-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.ap-facts div {
    padding: 10px 12px;
    background: var(--bg-app);
    border-radius: 12px;
}

.ap-facts dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ap-facts dd {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
}

.ap-soon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ap-soon div {
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.ap-soon strong {
    display: block;
    margin-bottom: 4px;
    color: var(--secondary);
}

.ap-soon span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ---------- Etapes ---------- */
.ap-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}

.ap-step {
    position: relative;
    padding: 22px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.ap-step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--secondary);
    border-radius: 50%;
}

.ap-step h3 {
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--secondary);
}

.ap-step p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ---------- Autres formats ---------- */
.ap-more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ap-more a {
    display: block;
    padding: 22px;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.ap-more a:hover {
    border-color: var(--primary);
}

.ap-more h3 {
    margin-bottom: 6px;
    font-size: 17px;
    color: var(--secondary);
}

.ap-more p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.ap-rules {
    padding-left: 20px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.ap-final {
    margin: 30px 0 70px;
    padding: 40px 24px;
    text-align: center;
    background: var(--secondary);
    border-radius: 24px;
}

.ap-final h2 {
    margin-bottom: 8px;
    font-size: 26px;
    color: #fff;
}

.ap-final p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: #cbd5e1;
}

@media (max-width: 991px) {
    .ap-points,
    .ap-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-views,
    .ap-more,
    .ap-soon {
        grid-template-columns: 1fr;
    }

    .ap-slot {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ap-hero {
        padding: 32px 0 24px;
    }

    .ap-hero h1 {
        font-size: 28px;
    }

    .ap-hero p {
        font-size: 15.5px;
    }

    .ap-points,
    .ap-steps {
        grid-template-columns: 1fr;
    }

    .ap-section > h2 {
        font-size: 23px;
    }

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