/* ============================================================
   MBV2 — COMPOSANTS UNIVERSELS Navy Pop
   Issus de :
   - DESIGN_BRIEF.md §4
   - prototype-desktop.html (source visuelle)
   - prototype-mobile.html
   ============================================================ */

/* ── 1. TAG (kicker pill) ── */
.mb-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--mb-navy);
    color: var(--mb-saf);
    padding: 5px 11px;
    font-family: var(--mb-font-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    border-radius: var(--mb-radius-pill);
    text-transform: uppercase;
    text-decoration: none;
}
.mb-tag::before { content: "●"; font-size: 7px; }
.mb-tag--inv {
    background: var(--mb-saf);
    color: var(--mb-navy);
}
.mb-tag--inv::before { color: var(--mb-navy); }

/* ── 2. BUTTON primaire (pastille safran →) ── */
.mb-btn-primary {
    background: var(--mb-navy);
    color: #fff !important;
    font-family: var(--mb-font-display);
    font-weight: 700;
    padding: 12px 18px;
    font-size: 13px;
    border-radius: var(--mb-radius-pill);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
    border: 0;
    cursor: pointer;
    transition: background var(--mb-t-fast), transform var(--mb-t-fast);
}
.mb-btn-primary::after {
    content: "→";
    background: var(--mb-saf);
    color: var(--mb-navy);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}
.mb-btn-primary:hover {
    background: var(--mb-navy-d);
    transform: translateY(-1px);
}

/* ── 3. BUTTON ghost (outline + underline safran) ── */
.mb-btn-ghost {
    background: transparent;
    color: var(--mb-navy) !important;
    font-family: var(--mb-font-display);
    font-weight: 700;
    padding: 12px 14px;
    font-size: 13px;
    text-decoration: underline !important;
    text-decoration-color: var(--mb-saf);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--mb-t-fast);
}
.mb-btn-ghost:hover { color: var(--mb-saf-d) !important; }

/* ── 4. CHECK item (certification inline) ── */
.mb-chk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--mb-text);
    font-weight: 500;
    margin-right: 14px;
}
.mb-chk::before {
    content: "✓";
    width: 18px;
    height: 18px;
    background: var(--mb-saf);
    color: var(--mb-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    font-family: var(--mb-font-display);
    flex-shrink: 0;
}

/* ── 5. CARD service ── */
.mb-svc-card {
    background: var(--mb-white);
    border-radius: var(--mb-radius);
    padding: 16px 14px;
    border: 1px solid var(--mb-line);
    transition: transform var(--mb-t), border-color var(--mb-t), box-shadow var(--mb-t);
    position: relative;
    overflow: hidden;
}
.mb-svc-card:hover {
    transform: translateY(-3px);
    border-color: var(--mb-saf);
    box-shadow: var(--mb-shadow);
}
.mb-svc-card .mb-svc-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--mb-saf);
    font-family: var(--mb-font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--mb-navy);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.mb-svc-card h3 {
    font-family: var(--mb-font-display);
    font-size: 14px;
    margin: 0 0 4px;
    color: var(--mb-navy);
    font-weight: 900;
    letter-spacing: -0.01em;
}
.mb-svc-card p {
    font-size: 11px;
    color: var(--mb-muted);
    margin: 0 0 8px;
    line-height: 1.5;
}
.mb-svc-card .mb-svc-link {
    font-family: var(--mb-font-display);
    font-weight: 700;
    font-size: 11px;
    color: var(--mb-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}
.mb-svc-card .mb-svc-link::after {
    content: "→";
    background: var(--mb-cream);
    color: var(--mb-navy);
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: background var(--mb-t-fast);
}
.mb-svc-card:hover .mb-svc-link::after {
    background: var(--mb-saf);
}

/* ── 6. TARIF card (avec badge RECOMMANDÉ) ── */
.mb-tarif-card {
    background: var(--mb-white);
    border-radius: var(--mb-radius);
    padding: 18px 16px;
    border: 1px solid var(--mb-line);
    position: relative;
    text-align: left;
}
.mb-tarif-card .mb-tarif-label {
    font-family: var(--mb-font-display);
    font-weight: 700;
    font-size: 11px;
    color: var(--mb-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.mb-tarif-card .mb-tarif-value {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 28px;
    color: var(--mb-navy);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
}
.mb-tarif-card .mb-tarif-value small {
    font-size: 14px;
    color: var(--mb-muted);
    font-weight: 500;
}
.mb-tarif-card .mb-tarif-sub {
    font-family: var(--mb-font-serif);
    font-style: italic;
    font-size: 11px;
    color: var(--mb-muted);
    margin: 2px 0 10px;
}
.mb-tarif-card ul {
    list-style: none;
    padding: 0; margin: 0;
    font-size: 11px;
    color: var(--mb-text);
    line-height: 1.8;
}
.mb-tarif-card li::before {
    content: "✓ ";
    color: var(--mb-saf);
    font-weight: 900;
    font-family: var(--mb-font-display);
}
.mb-tarif-card--featured {
    border: 2px solid var(--mb-saf);
    background: var(--mb-paper);
}
.mb-tarif-card--featured::before {
    content: "RECOMMANDÉ";
    position: absolute;
    top: -9px;
    left: 16px;
    background: var(--mb-saf);
    color: var(--mb-navy);
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 9px;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.1em;
}

/* ── 7. PHONE CTA box (navy bloc avec APPEL + numéro + sous-texte) ── */
.mb-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--mb-navy);
    padding: 10px 16px;
    border-radius: var(--mb-radius-pill);
    color: #fff !important;
    text-decoration: none !important;
    transition: background var(--mb-t-fast);
}
.mb-cta-phone:hover { background: var(--mb-navy-d); }
.mb-cta-phone .mb-cta-phone-label {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--mb-saf);
}
.mb-cta-phone .mb-cta-phone-number {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 15px;
    color: #fff;
    letter-spacing: -0.01em;
}
.mb-cta-phone .mb-cta-phone-sep {
    width: 1px; height: 16px;
    background: var(--mb-saf);
    opacity: 0.5;
    display: block;
}
.mb-cta-phone .mb-cta-phone-disp {
    font-size: 10px;
    color: var(--mb-on-navy);
}

/* ── 8. A2P toggle group ── */
.mb-a2p {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mb-a2p > span, .mb-a2p > a {
    background: var(--mb-white);
    border: 2px solid var(--mb-navy);
    color: var(--mb-navy);
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--mb-radius-pill);
    letter-spacing: 0.04em;
    text-decoration: none !important;
}
.mb-a2p > .on,
.mb-a2p > span[aria-current="true"] {
    background: var(--mb-navy);
    color: var(--mb-saf);
}

/* ── 9. DEPT card ── */
.mb-dept-card {
    background: var(--mb-white);
    border: 1px solid var(--mb-line);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: var(--mb-navy);
    font-size: 11px;
    transition: border-color var(--mb-t-fast), transform var(--mb-t-fast);
}
.mb-dept-card:hover {
    border-color: var(--mb-saf);
    transform: translateY(-1px);
}
.mb-dept-card .mb-dept-card-name {
    font-family: var(--mb-font-display);
    font-weight: 700;
}
.mb-dept-card .mb-dept-card-num {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 13px;
    color: var(--mb-saf);
    background: var(--mb-navy);
    padding: 2px 7px;
    border-radius: 6px;
}

/* ── 10. VILLE card ── */
.mb-city-card {
    background: var(--mb-white);
    border: 1px solid var(--mb-line);
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: var(--mb-navy);
    transition: border-color var(--mb-t-fast), transform var(--mb-t-fast);
}
.mb-city-card:hover {
    border-color: var(--mb-saf);
    transform: translateY(-1px);
}
.mb-city-card .mb-city-card-name {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 13px;
    color: var(--mb-navy);
    letter-spacing: -0.01em;
}
.mb-city-card .mb-city-card-sub {
    font-family: var(--mb-font-serif);
    font-style: italic;
    font-size: 10px;
    color: var(--mb-muted);
    margin-top: 2px;
    display: block;
}
.mb-city-card .mb-city-card-cp {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 11px;
    color: var(--mb-saf);
    background: var(--mb-navy);
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── 11. BADGE CP grand (inline header ville) ── */
.mb-cp-badge {
    background: var(--mb-saf);
    color: var(--mb-navy);
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 16px;
    padding: 5px 11px;
    border-radius: var(--mb-radius-pill);
    letter-spacing: -0.01em;
}

/* ── 12. INTERVENTION / typologie card ── */
.mb-intervention {
    background: var(--mb-white);
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}
.mb-intervention::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--mb-saf);
}
.mb-intervention .mb-intervention-meta {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 9px;
    color: var(--mb-saf);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 6px 0 4px;
}
.mb-intervention h5 {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 13px;
    margin: 0 0 3px;
    color: var(--mb-navy);
    letter-spacing: -0.01em;
}
.mb-intervention p {
    font-size: 11px;
    color: var(--mb-muted);
    margin: 0 0 8px;
    line-height: 1.55;
}

/* ── 13. QUARTIER chip ── */
.mb-quartier {
    background: var(--mb-white);
    border: 1px solid var(--mb-line);
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
}
.mb-quartier-nom {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 12px;
    color: var(--mb-navy);
    letter-spacing: -0.01em;
}
.mb-quartier-sub {
    font-family: var(--mb-font-display);
    font-weight: 700;
    font-size: 9px;
    color: var(--mb-saf);
    margin-top: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── 14. PULL QUOTE ── */
.mb-pullquote {
    border-left: 4px solid var(--mb-saf);
    background: var(--mb-cream);
    padding: 14px 16px;
    margin: 14px 0;
    border-radius: 0 var(--mb-radius-sm) var(--mb-radius-sm) 0;
}
.mb-pullquote q,
.mb-pullquote .mb-pullquote-text {
    font-family: var(--mb-font-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--mb-navy);
    line-height: 1.4;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}
.mb-pullquote cite,
.mb-pullquote .mb-pullquote-attribution {
    font-family: var(--mb-font-display);
    font-weight: 700;
    font-size: 10px;
    color: var(--mb-muted);
    letter-spacing: 0.06em;
    font-style: normal;
}

/* ── 15. DROP CAP (articles) ── */
.mb-prose p.mb-dropcap::first-letter,
.mb-prose > p:first-of-type::first-letter {
    font-family: var(--mb-font-display);
    font-size: 48px;
    font-weight: 900;
    float: left;
    line-height: 0.85;
    margin: 4px 10px 0 0;
    color: var(--mb-saf);
    background: var(--mb-navy);
    padding: 8px 10px;
    border-radius: 8px;
}

/* ── 16. CTA inline (dans article) ── */
.mb-cta-inline {
    background: var(--mb-navy);
    padding: 16px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-radius: var(--mb-radius);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.mb-cta-inline::before {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--mb-saf);
    opacity: 0.15;
}
.mb-cta-inline .mb-cta-inline-title {
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}
.mb-cta-inline .mb-cta-inline-sub {
    font-size: 11px;
    color: var(--mb-on-navy);
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.mb-cta-inline .mb-cta-inline-btn {
    background: var(--mb-saf);
    color: var(--mb-navy) !important;
    font-family: var(--mb-font-display);
    font-weight: 900;
    font-size: 11px;
    padding: 9px 14px;
    border-radius: var(--mb-radius-pill);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    letter-spacing: -0.01em;
}
.mb-cta-inline .mb-cta-inline-btn::after { content: "→"; font-size: 14px; }
