/* ==========================================================================
   MENTIONS OBLIGATOIRES FACTURE — Scoped Styles
   Uses Cogeflandre design system variables from styles.css
   ========================================================================== */

/* ── ARTICLE LAYOUT ── */
.mo-article {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HERO / INTRO ── */
.mo-hero {
    padding: 48px 0 36px;
}

.mo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 18px;
}

.mo-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--primary-light);
}

.mo-hero h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.65rem, 4vw, 2.4rem);
    line-height: 1.18;
    margin: 0 0 18px;
    color: var(--primary-color);
    letter-spacing: -0.4px;
}

.mo-chapo {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 64ch;
    font-weight: 400;
    line-height: 1.65;
}

.mo-chapo strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* ── KEY DATES ── */
.mo-keydates {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.mo-kd {
    flex: 1 1 220px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.mo-kd:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mo-kd::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-light);
}

.mo-kd .mo-kd-date {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mo-kd .mo-kd-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* ── SECTIONS ── */
.mo-section {
    border-top: none;
}

.mo-sec-num {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.mo-section h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    color: var(--primary-color);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.mo-section .mo-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 66ch;
    margin-bottom: 8px;
    line-height: 1.6;
}

.mo-section p {
    margin: 0 0 14px;
    line-height: 1.65;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ── FACTURE ANNOTÉE ── */
.mo-invoice-stage {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

.mo-invoice {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px 24px 28px;
    font-size: 0.9rem;
}

.mo-inv-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--border-color-light);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.mo-inv-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mo-inv-meta {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.mo-inv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.mo-inv-block .mo-inv-h {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.mo-inv-block .mo-inv-v {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.mo-tag {
    display: inline-block;
    background: rgba(156, 28, 24, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(156, 28, 24, 0.18);
    border-radius: var(--radius-sm);
    padding: 1px 7px;
    font-size: 0.74rem;
    font-weight: 700;
}

.mo-mark {
    background: linear-gradient(transparent 55%, rgba(116, 167, 201, 0.22) 0);
    font-weight: 700;
    color: var(--primary-color);
    border-radius: 2px;
    padding: 0 2px;
}

.mo-inv-lines {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-top: 6px;
}

.mo-inv-lines th {
    text-align: left;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 6px 4px;
    font-weight: 700;
}

.mo-inv-lines td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-dark);
}

.mo-inv-lines td:last-child,
.mo-inv-lines th:last-child {
    text-align: right;
}

.mo-inv-tot {
    text-align: right;
    margin-top: 14px;
    font-size: 0.86rem;
    color: var(--text-dark);
}

.mo-inv-tot .mo-ttc {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ── LÉGENDE ── */
.mo-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mo-legend h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
}

.mo-lg {
    display: flex;
    gap: 12px;
    background: var(--bg-beige);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: var(--transition-smooth);
}

.mo-lg:hover {
    box-shadow: var(--shadow-sm);
}

.mo-lg .mo-lg-num {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-family: var(--font-heading);
}

.mo-lg .mo-lg-text {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-dark);
}

.mo-lg .mo-lg-text b {
    color: var(--primary-color);
}

/* ── TIMELINE ── */
.mo-timeline {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mo-wave {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.mo-wave:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mo-wave .mo-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    align-self: flex-start;
}

.mo-wave.mo-v2 .mo-badge {
    background: var(--primary-color);
}

.mo-wave .mo-when {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}

.mo-wave .mo-cnt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0 10px;
}

.mo-wave .mo-desc {
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.55;
    flex-grow: 1;
}

.mo-wave .mo-who {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--primary-color);
    font-weight: 700;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    min-height: 52px;
}

.mo-total-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    background: none;
    margin: 6px 0 22px;
}

.mo-total-badge .mo-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.mo-total-badge .mo-txt {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 30ch;
    line-height: 1.35;
}

/* ── MENTIONS GROUPÉES ── */
.mo-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mo-grp {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.mo-grp:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.mo-grp h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
}

.mo-grp h3 .mo-ic {
    flex: 0 0 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: rgba(116, 167, 201, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.mo-grp ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mo-grp li {
    font-size: 0.9rem;
    padding: 6px 0 6px 22px;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-beige);
    line-height: 1.5;
}

.mo-grp li:last-child {
    border-bottom: none;
}

.mo-grp li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--primary-light);
    transform: rotate(45deg);
}

.mo-grp li b {
    color: var(--primary-color);
}

.mo-grp li.mo-key {
    padding-left: 22px;
    padding-right: 0;
}

.mo-grp li.mo-key::after {
    content: "clé";
    float: right;
    margin-top: 3px;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 700;
    background: rgba(156, 28, 24, 0.08);
    padding: 1px 7px;
    border-radius: var(--radius-sm);
}

.mo-grp-full {
    grid-column: 1 / -1;
}

.mo-grp-full ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 56px;
}

/* ── VAGUE 2 LIST ── */
.mo-wave2list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    list-style: none;
    padding: 0;
}

.mo-wave2list li {
    font-size: 0.9rem;
    padding: 6px 0 6px 22px;
    position: relative;
    border-bottom: 1px solid var(--bg-beige);
    color: var(--text-dark);
    line-height: 1.5;
}

.mo-wave2list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 13px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    transform: rotate(45deg);
}

.mo-wave2list li b {
    color: var(--primary-color);
}

/* ── VERIFY BADGE ── */
.mo-verif {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    background: rgba(156, 28, 24, 0.08);
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    margin-left: 4px;
    vertical-align: middle;
}

/* ── CALLOUTS ── */
.mo-callout {
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-top: 22px;
    display: flex;
    gap: 16px;
}

.mo-callout .mo-callout-ic {
    flex: 0 0 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mo-callout h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.mo-callout p {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.mo-callout p:last-child {
    margin: 0;
}

/* Amber variant (warning) */
.mo-c-amber {
    background: rgba(156, 28, 24, 0.05);
    border: 1px solid rgba(156, 28, 24, 0.15);
}

.mo-c-amber .mo-callout-ic {
    background: rgba(156, 28, 24, 0.1);
    color: var(--secondary-color);
}

.mo-c-amber h3 {
    color: var(--secondary-color);
}

/* Blue variant (info) */
.mo-c-blue {
    background: rgba(116, 167, 201, 0.08);
    border: 1px solid var(--border-color-light);
}

.mo-c-blue .mo-callout-ic {
    background: rgba(116, 167, 201, 0.18);
    color: var(--primary-color);
}

.mo-c-blue h3 {
    color: var(--primary-color);
}

/* ── ENCADRÉ CABINET ── */
.mo-cab {
    margin-top: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 32px 32px;
}

.mo-cab .mo-sec-num,
.mo-cab .section-eyebrow {
    color: var(--accent-light);
    margin-bottom: 8px;
}

.mo-cab h2,
.mo-cab .section-head {
    color: var(--white) !important;
    margin-bottom: 16px;
}

.mo-cab p {
    color: var(--accent-light);
}

.mo-cab a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.mo-cab a:hover {
    opacity: 0.85;
}

#enjeu {
    border-bottom: none;
    padding-bottom: 24px;
}

/* ── NOTES & SOURCES ── */
.mo-notes {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.mo-notes h4 {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 10px;
    font-weight: 700;
}

.mo-notes ul {
    padding-left: 18px;
    margin: 0 0 18px;
}

.mo-notes li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.mo-disclaimer {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    background: var(--bg-beige);
    font-style: italic;
    line-height: 1.55;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .mo-invoice-stage {
        grid-template-columns: 1fr;
    }

    .mo-timeline {
        grid-template-columns: 1fr;
    }

    .mo-groups {
        grid-template-columns: 1fr;
    }

    .mo-wave2list {
        grid-template-columns: 1fr;
    }

    .mo-grp-full ul {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mo-callout {
        flex-direction: column;
        gap: 12px;
    }

    .mo-cab {
        padding: 24px 20px;
    }

    .mo-hero h2 {
        font-size: 1.5rem;
    }

    .mo-inv-grid {
        grid-template-columns: 1fr;
    }
}
