/* MCC Rewards — page publique /mcc-rewards (.m-rw*) et espace participant
   /mon-profil/points (.m-rwp*). Polices et rouge du thème (--m-*). */

.m-rw, .m-rwp { --rw-red: var(--site-red, #d11124); --rw-ink: var(--site-navy, #0b1733); --rw-muted: var(--site-muted, #5b6477); --rw-line: var(--site-border, #eceef2); --rw-soft: var(--site-red-soft, #fdf1f2); }
.m-rw .m-rw-ico, .m-rwp .m-rw-ico {
    position: relative; flex: none; display: grid; place-items: center;
    width: 3.2rem; height: 3.2rem; border-radius: 50%;
    background: var(--rw-soft); color: var(--rw-red);
}
.m-rw .m-rw-ico svg.lucide { width: 24px; height: 24px; stroke-width: 1.6; }
.m-rw .m-rw-ico em { position: absolute; top: -0.6rem; right: -1.3rem; padding: 0.05rem 0.4rem; border-radius: 5px; background: var(--rw-red); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.m-rw .m-rw-ico--lg { width: 5.5rem; height: 5.5rem; }
.m-rw .m-rw-ico--lg svg.lucide { width: 40px; height: 40px; }

.m-rw-eyebrow { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.6rem; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b2130; }
.m-rw-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--rw-red); }
.m-rw-h2 { margin: 0 0 1.6rem; font-family: var(--m-font-display, Georgia, serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; color: var(--rw-ink); }
.m-rw-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1.4rem; border-radius: var(--site-radius-btn, 6px);
    background: var(--rw-red); color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
    border: 1.5px solid var(--rw-red); transition: background 0.2s;
}
.m-rw-btn:hover { background: var(--site-red-dark, #a90d1d); color: #fff; }
.m-rw-btn--ghost { background: var(--site-surface, #fff); color: var(--rw-ink); border-color: var(--site-border, #cfd3da); }
.m-rw-btn--ghost:hover { background: var(--site-canvas, #f6f7f9); color: var(--rw-ink); }
.m-rw-btn svg.lucide { width: 17px; height: 17px; }

/* Bandeau */
.m-rw-hero { padding: clamp(6.5rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); background: linear-gradient(90deg, var(--site-surface, #fff) 0%, var(--site-surface, #fff) 48%, color-mix(in srgb, var(--site-surface, #ffffff) 75%, transparent) 70%), url('/storage/cms/mcc2026/du-v1-chirurgien.webp') right center / cover no-repeat; }
.m-rw-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.m-rw-hero__title { margin: 0 0 0.6rem; font-family: var(--m-font-display, Georgia, serif); font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.05; color: var(--rw-ink); }
.m-rw-hero__lead { margin: 0 0 0.9rem; font-size: 17px; font-weight: 600; color: var(--rw-ink); }
.m-rw-hero__text { margin: 0 0 1.5rem; max-width: 36rem; font-size: 15px; line-height: 1.6; color: var(--rw-muted); }
.m-rw-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.m-rw-mybalance { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--rw-soft); color: var(--rw-ink); text-decoration: none; font-size: 14px; }
.m-rw-mybalance svg.lucide { width: 17px; height: 17px; color: var(--rw-red); }
.m-rw-principle { padding: 1.6rem 1.8rem; border-radius: 14px; background: color-mix(in srgb, var(--site-surface, #ffffff) 96%, transparent); box-shadow: 0 20px 50px -25px rgba(0, 7, 29, 0.35); }
.m-rw-principle h2 { margin: 0; font-family: var(--m-font-display, Georgia, serif); font-size: 1.3rem; color: var(--rw-ink); }
.m-rw-principle > p { margin: 0.2rem 0 1.3rem; font-size: 13.5px; color: var(--rw-muted); }
.m-rw-principle ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; text-align: center; }
.m-rw-principle li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; }
.m-rw-principle li strong { margin-top: 0.4rem; font-size: 14.5px; color: var(--rw-ink); }
.m-rw-principle li small { font-size: 12px; color: var(--rw-muted); }
.m-rw-principle__arrow { flex: none !important; padding-top: 1rem; color: #9aa1ad; }

/* Sections */
.m-rw-sec { padding: clamp(2rem, 4vw, 3rem) 0; background: var(--site-surface, #fff); }
.m-rw-sec--alt { background: var(--site-canvas, #f7f8fb); }
.m-rw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.m-rw-steps li { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--rw-line); border-radius: 10px; background: var(--site-surface, #fff); }
.m-rw-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%); color: #9aa1ad; font-size: 18px; }
.m-rw-steps strong { display: block; margin-bottom: 0.3rem; font-size: 15px; color: var(--rw-ink); }
.m-rw-steps small { font-size: 13px; line-height: 1.45; color: var(--rw-muted); }
.m-rw-earn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.m-rw-earn > div { display: flex; gap: 1.2rem; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--rw-line); border-radius: 10px; background: var(--site-surface, #fff); }
.m-rw-earn strong { display: block; font-size: 16px; color: var(--rw-ink); margin-bottom: 0.25rem; }
.m-rw-earn small { font-size: 13.5px; line-height: 1.45; color: var(--rw-muted); }

.m-rw-example { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 1.2rem; }
.m-rw-example__calc { display: flex; gap: 1.4rem; align-items: center; padding: 1.2rem; border: 1px solid var(--rw-line); border-radius: 12px; }
.m-rw-example__calc > img { width: 8.5rem; height: 8.5rem; object-fit: cover; border-radius: 8px; flex: none; }
.m-rw-example__title { display: block; margin-bottom: 0.9rem; font-family: var(--m-font-display, Georgia, serif); font-size: 17px; color: var(--rw-ink); }
.m-rw-example__row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.m-rw-example__row > span { font-size: 22px; color: #9aa1ad; }
.m-rw-box { display: grid; justify-items: center; gap: 0.15rem; min-width: 7.5rem; padding: 0.8rem 1rem; border-radius: 8px; background: var(--site-canvas, #f7f8fb); text-align: center; }
.m-rw-box b { font-size: 1.6rem; color: var(--rw-ink); }
.m-rw-box small { font-size: 12px; color: var(--rw-muted); }
.m-rw-box.is-gain { background: #ecfdf3; } .m-rw-box.is-gain b { color: #15803d; }
.m-rw-box.is-new b { color: var(--rw-red); }
.m-rw-example__unlock { display: flex; gap: 1.2rem; align-items: center; padding: 1.4rem; border-radius: 12px; background: var(--rw-soft); border: 1px solid #f6d3d7; }
.m-rw-example__unlock strong { display: block; margin: 0.2rem 0; font-family: var(--m-font-display, Georgia, serif); font-size: 1.5rem; color: var(--rw-red); line-height: 1.15; }
.m-rw-example__unlock small { display: block; font-size: 13px; color: var(--rw-ink); }
.m-rw-example__unlock .m-rw-btn { margin-top: 0.8rem; }

.m-rw-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.m-rw-reward { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem; border: 1px solid var(--rw-line); border-radius: 12px; background: var(--site-surface, #fff); }
.m-rw-reward strong { display: block; font-family: var(--m-font-display, Georgia, serif); font-size: 17px; color: var(--rw-ink); }
.m-rw-pill { display: inline-block; margin: 0.5rem 0; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--rw-soft); color: var(--rw-red); font-size: 13px; font-weight: 700; }
.m-rw-reward small { display: block; font-size: 13px; line-height: 1.45; color: var(--rw-muted); }

.m-rw-levels { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.m-rw-levels li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; padding-top: 0.2rem; }
.m-rw-levels li:not(:last-child)::after { content: ''; position: absolute; top: 1.9rem; left: calc(50% + 2rem); right: calc(-50% + 2rem); height: 1.5px; background: #f2a6ae; }
.m-rw-levels__dot { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--site-canvas, #eef0f4); color: var(--rw-ink); }
.m-rw-levels__dot svg.lucide { width: 24px; height: 24px; }
.m-rw-levels li.is-current .m-rw-levels__dot { background: var(--rw-soft); color: var(--rw-red); box-shadow: 0 0 0 3px var(--rw-red); }
.m-rw-levels li.is-current strong, .m-rw-levels li.is-current .m-rw-levels__range { color: var(--rw-red); }
.m-rw-levels__tag { position: absolute; top: -1.9rem; padding: 0.15rem 0.6rem; border-radius: 5px; background: var(--rw-red); color: #fff; font-size: 11.5px; white-space: nowrap; }
.m-rw-levels strong { font-size: 16px; color: var(--rw-ink); }
.m-rw-levels__range { font-size: 14px; color: var(--rw-muted); }
.m-rw-levels small { font-size: 13px; color: var(--rw-muted); }
.m-rw-note { display: flex; align-items: center; gap: 0.6rem; margin: 1.2rem 0 0; padding: 0.7rem 1rem; border-radius: 8px; background: #eef4fb; color: var(--site-ink, #334155); font-size: 13.5px; }
.m-rw-note svg.lucide { width: 18px; height: 18px; color: #2563eb; flex: none; }

.m-rw-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.2rem; align-items: start; }
.m-rw-faq details { border: 1px solid var(--rw-line); border-radius: 8px; background: var(--site-surface, #fff); }
.m-rw-faq summary { cursor: pointer; padding: 0.8rem 1rem; font-size: 14.5px; font-weight: 600; color: var(--rw-ink); }
.m-rw-faq p { margin: 0; padding: 0 1rem 0.9rem; font-size: 14px; line-height: 1.55; color: var(--rw-muted); }
.m-rw-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 2rem 2.4rem; border-radius: var(--site-radius, 14px); background: linear-gradient(90deg, var(--site-red-soft, #fdecee), var(--site-red-soft, #fff7f7)); }
.m-rw-cta p { margin: 0; max-width: 32rem; font-family: var(--m-font-display, Georgia, serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--rw-ink); }

@media (max-width: 960px) {
    .m-rw-hero__grid, .m-rw-example { grid-template-columns: minmax(0, 1fr); }
    .m-rw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-rw-steps li::after { display: none; }
    .m-rw-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .m-rw-levels li::after { display: none; }
}
@media (max-width: 620px) {
    .m-rw-steps, .m-rw-earn, .m-rw-faq { grid-template-columns: minmax(0, 1fr); }
    .m-rw-example__calc { flex-direction: column; align-items: flex-start; }
    .m-rw-principle ol { flex-wrap: wrap; }
}

/* ── Espace participant : Mes points MCC ─────────────────────────── */
.m-rwp { max-width: 980px; margin: 2.5rem auto; padding: 0 1rem; color: var(--rw-ink); }
.m-rwp svg.lucide { width: 18px; height: 18px; }
.m-rwp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.m-rwp__head h1 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.5rem; font-weight: 700; }
.m-rwp__head h1 svg.lucide { width: 24px; height: 24px; color: var(--rw-red); }
.m-rwp__link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--rw-red); font-weight: 600; text-decoration: none; font-size: 14px; }
.m-rwp__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.m-rwp__card { display: grid; gap: 0.3rem; align-content: start; padding: 1.2rem 1.3rem; border: 1px solid var(--site-border, #eee); border-radius: 14px; background: var(--site-surface, #fff); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04); }
.m-rwp__card small { font-size: 13px; color: var(--rw-muted); }
.m-rwp__card strong { font-size: 2rem; line-height: 1.1; }
.m-rwp__card strong.is-sm { font-size: 1.1rem; }
.m-rwp__card.is-balance { background: var(--rw-soft); border-color: #f6d3d7; }
.m-rwp__card.is-balance strong { color: var(--rw-red); font-size: 2.6rem; }
.m-rwp__bar { height: 8px; border-radius: 999px; background: var(--site-canvas, #eef0f4); overflow: hidden; margin: 0.4rem 0; }
.m-rwp__bar span { display: block; height: 100%; border-radius: inherit; background: var(--rw-red); }
.m-rwp__rewards, .m-rwp__history { margin-bottom: 1.4rem; padding: 1.2rem 1.3rem; border: 1px solid var(--site-border, #eee); border-radius: 14px; background: var(--site-surface, #fff); }
.m-rwp h2 { margin: 0 0 0.9rem; font-size: 1.1rem; font-weight: 700; }
.m-rwp__rewards ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.m-rwp__rewards li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--site-canvas, #f7f8fb); color: #9aa1ad; }
.m-rwp__rewards li span { display: grid; flex: 1; color: var(--rw-ink); }
.m-rwp__rewards li small { color: var(--rw-muted); font-size: 12.5px; }
.m-rwp__rewards li em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #15803d; }
.m-rwp__rewards li.is-ok { background: #ecfdf3; color: #15803d; }
.m-rwp__history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-rwp__history th { padding: 0.6rem; text-align: left; font-weight: 600; color: var(--rw-muted); border-bottom: 1px solid var(--site-border, #eee); }
.m-rwp__history td { padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--site-border, #f3f4f6); }
.m-rwp__history .num { text-align: right; font-weight: 700; white-space: nowrap; }
.m-rwp__history .is-pos { color: #15803d; } .m-rwp__history .is-neg { color: var(--rw-red); }
.m-rwp__empty, .m-rwp__note { margin: 0.4rem 0 0; font-size: 13.5px; color: var(--rw-muted); }
@media (max-width: 760px) { .m-rwp__cards { grid-template-columns: minmax(0, 1fr); } }

/* Bandeau : dégradé bleu nuit (au lieu du blanc) sur la photo, textes clairs. */
.m-rw-hero {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--site-navy, #08112c) 97%, transparent) 0%, color-mix(in srgb, var(--site-navy, #0b1733) 90%, transparent) 42%, color-mix(in srgb, var(--site-navy, #0b1733) 55%, transparent) 68%, color-mix(in srgb, var(--site-navy, #0b1733) 25%, transparent) 100%),
        url('/storage/cms/mcc2026/du-v1-chirurgien.webp') right center / cover no-repeat;
}
.m-rw-hero .m-rw-eyebrow { color: #fff; }
.m-rw-hero__title, .m-rw-hero__lead { color: #fff; }
.m-rw-hero__text { color: rgba(255, 255, 255, 0.82); }
.m-rw-hero .m-rw-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.m-rw-hero .m-rw-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.m-rw-hero .m-rw-mybalance { background: rgba(255, 255, 255, 0.12); color: #fff; }
.m-rw-hero .m-rw-mybalance svg.lucide { color: #fff; }
/* Photo du bandeau : réglable dans l'admin (variable --rw-hero-img posée par la page). */
.m-rw-hero {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--site-navy, #08112c) 97%, transparent) 0%, color-mix(in srgb, var(--site-navy, #0b1733) 90%, transparent) 42%, color-mix(in srgb, var(--site-navy, #0b1733) 55%, transparent) 68%, color-mix(in srgb, var(--site-navy, #0b1733) 25%, transparent) 100%),
        var(--rw-hero-img, url('/storage/cms/mcc2026/du-v1-chirurgien.webp')) right center / cover no-repeat;
}
