/* Canonical Promo card (.mfpc-card): Home (compact), /promos/ (standard), profile (profile). One component, light Fivva green,
   a small offer-value badge instead of a side pillar. Status tag: green future date, red only for « Expire aujourd'hui », grey without an end date. */
.mfpc-card {
	position: relative; display: flex; flex-direction: column; box-sizing: border-box; min-inline-size: 0; padding: 16px;
	border: 1px solid #dbe8a6; border-radius: 16px; background: linear-gradient(135deg, #f4f9dc 0%, #eaf4c2 100%);
	color: #202733; text-align: start; cursor: pointer; font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-tap-highlight-color: transparent;
}
.mfpc-card:focus-visible { outline: 2px solid #637d12; outline-offset: 2px; }
.mfpc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 10px; }
.mfpc-flag { display: inline-flex; align-items: center; gap: 6px; min-inline-size: 0; }
.mfpc-flag b { padding: 3px 8px; border-radius: 6px; background: #1a2120; color: #dcff35; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.mfpc-flag i { padding: 3px 8px; border-radius: 6px; background: #fff; color: #1a2120; font-style: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.mfpc-tag { display: inline-flex; align-items: center; min-block-size: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: #44520b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mfpc-tag.is-open { background: #eef0ec; color: #5b655f; }
.mfpc-tag.is-green { background: #e3f1b8; color: #44520b; }
.mfpc-tag.is-amber { background: #fdebc8; color: #8a5300; }
.mfpc-tag.is-red { background: #fde4e1; color: #b42318; }
.mfpc-title { display: block; font-size: 18px; line-height: 1.3; font-weight: 800; color: #202733; }
.mfpc-sub { display: block; margin-block-start: 3px; font-size: 14px; line-height: 1.35; color: #3f4a45; }
.mfpc-card .mfo-price-effect { margin: 6px 0 0; font-size: 14px; color: #202733; }
.mfpc-card .mfo-price-effect strong { font-size: 16px; }
.mfpc-card .mfo-price-effect del { margin-inline-start: 6px; color: #8a928e; font-size: 13px; }
.mfpc-card .mfo-price-effect.mfo-empty { display: none; }
.mfpc-pro { display: flex; align-items: center; gap: 10px; margin-block-start: 14px; padding-block-start: 12px; border-block-start: 1px solid rgba(68, 82, 11, .12); min-inline-size: 0; }
.mfpc-avatar { flex: none; inline-size: 36px; block-size: 36px; border-radius: 50%; object-fit: cover; background: #fff; }
.mfpc-avatar-blank { display: inline-grid; place-items: center; font-weight: 800; color: #44520b; }
.mfpc-pro-text { display: grid; gap: 1px; min-inline-size: 0; }
.mfpc-pro-name { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: #202733; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfpc-seal { flex: none; }
.mfpc-pro-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #5b655f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfpc-rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #202733; }
.mfpc-rating svg { inline-size: 13px; block-size: 13px; fill: #f5b400; }
.mfpc-card.is-compact { flex: 0 0 min(300px, 82vw); }

/* Promo sheet: extends the card (green offer block, same tags), no provider identity. */
.mfps-value { margin: 4px 0 0; padding: 18px; border: 1px solid #dbe8a6; border-radius: 16px; background: linear-gradient(135deg, #f4f9dc 0%, #eaf4c2 100%); }
.mfps-value-main { display: grid; gap: 4px; }
.mfps-value-main b { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.5px; color: #1a2120; text-transform: uppercase; }
.mfps-value-main span { font-size: 16px; font-weight: 600; color: #3f4a45; }
.mfps-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.mfps .mfps-tag { display: inline-flex; align-items: center; min-block-size: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .8); color: #44520b; font-size: 13px; font-weight: 700; border: 0; }
.mfps .mfps-tag.is-open { background: #eef0ec; color: #5b655f; }
.mfps .mfps-tag.is-green { background: #e3f1b8; color: #44520b; }
.mfps .mfps-tag.is-amber { background: #fdebc8; color: #8a5300; }
.mfps .mfps-tag.is-red { background: #fde4e1; color: #b42318; }
.mfps .mfps-tag.mfps-tag-elig { background: #1a2120; color: #fff; }
.mfps .mfps-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: #2f3a35; }
.mfps-pro-link { display: inline-block; margin-block-start: 12px; font-size: 14px; font-weight: 700; color: #44520b; text-decoration: none; }
.mfps ol.mfps-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mfps ol.mfps-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; color: #202733; }
.mfps ol.mfps-steps li b { flex: none; display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: #1a2120; color: #dcff35; font-size: 13px; }
.mfps .mfps-foot { margin: 0; text-align: center; font-size: 13px; color: #5b655f; }

/* ---- /promos/ page V2: compact hero, one chip row, sections (no divider lines; heading + whitespace, like the profile) ---- */
.mf-offres .mfo-hero { display: grid; gap: 6px; justify-items: start; padding-block: 8px 0; }
/* V2.3: the page title and count use the same type as Explore (.mf-results-heading) and Home sections; no Promo-specific font family or scale. */
.mf-offres .mfo-hero h1 { margin: 6px 0 0; font-size: 25px; line-height: 1.25; letter-spacing: -.8px; font-weight: 700; }
@media (max-width: 480px) { .mf-offres .mfo-hero h1 { font-size: 21px; letter-spacing: -.5px; } }
.mf-offres .mfo-count { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: #626c66; }
.mf-offres .mfo-filterbar { display: flex; align-items: center; gap: 10px; margin-block-start: 16px; min-inline-size: 0; }
/* V2.3 filter sheet: the Explore language (same tile, same active state as Essentiels, same section rhythm). */
.mf-offres #mfo-sheet .mfo-fsec { padding-block: 18px; border-block-start: 1px solid #e1e6dd; }
.mf-offres #mfo-sheet .mfo-fsec:first-of-type { border-block-start: 0; padding-block-start: 4px; }
.mf-offres #mfo-sheet .mfo-fsec h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #202733; }
.mf-offres #mfo-sheet .mfo-fsec .mfo-fhint { margin: 0; font-size: 13px; color: #626c66; }
.mf-offres #mfo-sheet .mfo-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 12px; }
.mf-offres #mfo-sheet .mfo-tile { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-block-size: 44px; padding: 12px; background: #fff; border: 1px solid #e1e6dd; border-radius: 12px; color: #202733; font-size: 14px; text-align: start; cursor: pointer; }
.mf-offres #mfo-sheet .mfo-tile .mfo-tile-l { flex: 1 1 auto; min-inline-size: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-offres #mfo-sheet .mfo-tile-ico { flex: none; display: grid; place-items: center; inline-size: 35px; block-size: 35px; border-radius: 9px; background: #eef3e8; color: #70891d; }
.mf-offres #mfo-sheet .mfo-tile-ico svg { inline-size: 20px; block-size: 20px; }
.mf-offres #mfo-sheet .mfo-tile.is-active .mfo-tile-ico { background: rgba(255, 255, 255, .11); color: #d5eb45; }
.mf-offres #mfo-sheet .mfo-tile-grid { grid-template-columns: 1fr 1fr; }
.mf-offres #mfo-sheet .mfo-tile { padding: 10px; gap: 8px; }
.mf-offres #mfo-sheet .mfo-tile .mfo-tile-l { white-space: normal; line-height: 1.2; font-size: 13.5px; }
.mf-offres #mfo-sheet .mfo-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf-offres #mfo-sheet .mfo-frow .mfo-field { min-inline-size: 0; }
.mf-offres #mfo-sheet .mfo-frow select { inline-size: 100%; min-inline-size: 0; text-overflow: ellipsis; }
.mf-offres #mfo-sheet .mfo-located { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 14px; font-weight: 600; color: #3f5e1a; }
.mf-offres #mfo-sheet .mfo-linkbtn { border: 0; background: none; padding: 6px; font-size: 13px; font-weight: 600; color: #626c66; text-decoration: underline; cursor: pointer; }
.mf-offres #mfo-sheet .mfo-locate-btn { display: inline-flex; align-items: center; gap: 8px; margin-block: 4px 14px; }
.mf-offres #mfo-sheet .mfo-locate-btn svg { inline-size: 20px; block-size: 20px; }
.mf-offres .mfo-filters-btn { display: inline-flex; align-items: center; gap: 8px; }
.mf-offres .mfo-filters-btn svg { inline-size: 18px; block-size: 18px; }
.mf-offres #mfo-sheet .mfo-tile-plus { margin-inline-start: auto; flex-shrink: 0; font-size: 16px; line-height: 1; color: #626c66; }
.mf-offres #mfo-sheet .mfo-tile.is-active { background: #202733; border-color: #202733; color: #fff; }
.mf-offres #mfo-sheet .mfo-tile.is-active .mfo-tile-plus { color: #fff; }
.mf-offres #mfo-sheet .mfo-city-select { inline-size: 100%; }
.mf-offres #mfo-sheet .mfo-fcta { display: flex; align-items: center; justify-content: center; inline-size: 100%; min-block-size: 52px; margin-block-start: 6px; border: 0; border-radius: 999px; background: #d5eb45; color: #202733; font-size: 16px; font-weight: 700; cursor: pointer; }
.mf-offres #mfo-sheet .mfo-freset { display: block; margin: 10px auto 0; padding: 10px; border: 0; background: none; font-size: 14px; font-weight: 600; color: #626c66; text-decoration: underline; cursor: pointer; }
.mf-offres .mfo-filters-btn .mfo-fcount { margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: #202733; color: #fff; font-size: 12px; }
.mf-offres .mfo-filterbar .mfo-chips { flex: 1 1 auto; min-inline-size: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 2px 0; }
.mf-offres .mfo-filterbar .mfo-chips::-webkit-scrollbar { display: none; }
.mf-offres .mfo-filterbar .mfo-chips button { flex: none; min-block-size: 40px; padding: 0 14px; border: 1px solid #d9ded7; border-radius: 999px; background: #fff; color: #202733; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.mf-offres .mfo-filterbar .mfo-chips button[aria-pressed="true"] { background: #1a2120; border-color: #1a2120; color: #fff; }
.mf-offres .mfo-filters-btn { flex: none; min-block-size: 40px; padding: 0 14px; border: 1px solid #202733; border-radius: 999px; background: #fff; color: #202733; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mf-offres .mfo-filter-state { margin-block-start: 8px; font-size: 13px; color: #5b655f; }
.mf-offres .mfo-filter-state:empty { display: none; }
.mf-offres .mfo-block { margin-block-start: 36px; border: 0; }
.mf-offres .mfo-block-title { margin: 0 0 18px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.mf-offres .mfo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.mf-offres .mfo-grid > .mfpc-card { block-size: 100%; }
@media (min-width: 700px) { .mf-offres .mfo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mf-offres .mfo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mf-offres .mfo-load-block { margin-block-start: 20px; text-align: center; }
.mf-offres .mfo-how { margin-block-start: 48px; opacity: .92; }

/* Home rail: the canonical card in a swipeable row. */
.mfo-home-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.mfo-home-rail::-webkit-scrollbar { display: none; }
.mfo-home-rail > .mfpc-card { scroll-snap-align: start; }

.mfps .mfps-auto { margin: 2px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: #3f4a45; }
.mfps .mfps-foot { margin: 0; text-align: center; font-size: 12.5px; color: #7a8782; }
.mfps-footer .mfps-pro-link { display: block; margin: 4px 0 0; text-align: center; font-weight: 600; color: #5b655f; }
.mfps .mfps-ok { display: grid; place-items: center; inline-size: 64px; block-size: 64px; margin: 8px auto 12px; border-radius: 50%; background: #eaf4c2; color: #44520b; }
.mfps .mfps-ok svg { inline-size: 32px; block-size: 32px; }
.mfps-body #mfps-title { text-align: start; }

/* V2.1: provider meta = the Explore card's own components (.mf-card-meta / star / count / area / km), same typography. */
.mfpc-pro .mf-card-meta { display: flex; align-items: center; gap: 3px; min-inline-size: 0; font-size: 12px; line-height: 1.5; color: #6a7472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfpc-pro .mf-card-meta b { color: #202733; font-weight: 700; }
.mfpc-pro .mf-card-star { display: inline-flex; color: #ffb800; }
.mfpc-pro .mf-card-star svg { inline-size: 12px; block-size: 12px; fill: currentColor; }
.mfpc-pro .mf-card-area { overflow: hidden; text-overflow: ellipsis; }
.mfpc-pro-name { font-size: 16px; letter-spacing: -.3px; line-height: 1.3; }
.mfpc-tag { min-inline-size: 0; box-sizing: border-box; block-size: 24px; padding: 0 10px; }

/* V2.2: every card has the same structure: PROMO + date, title (1 line), second line (1 line, always reserved), provider footer pinned to the bottom. */
.mfpc-card { block-size: 100%; gap: 0; }
.mfpc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfpc-sub { display: block; min-block-size: 20px; margin-block: 3px 12px; font-size: 14px; line-height: 20px; color: #3f4a45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfpc-sub strong { color: #202733; }
.mfpc-sub del { margin-inline-start: 6px; color: #8a928e; font-size: 13px; }
.mfpc-card .mfpc-pro { margin-block-start: auto; }
.mfo-home-rail > .mfpc-card, .mfo-grid > .mfpc-card { align-self: stretch; }

/* Promo detail (V2.2): compact, no giant value. Title in the header; one compact row of conditions + date; the green panel carries benefit / value / the Pro's description. */
.mfps-value { padding: 14px 16px; margin-block-start: 2px; }
.mfps-tags { margin: 0 0 10px; gap: 6px; }
.mfps-value-main { gap: 2px; }
.mfps-value-main b { font-size: 24px; line-height: 1.1; text-transform: none; letter-spacing: -.3px; }
.mfps-value-main span { font-size: 17px; font-weight: 700; color: #1a2120; }
.mfps .mfps-note { display: block; margin-block-start: 2px; font-size: 14px; color: #3f4a45; }
.mfps .mfps-desc { margin: 10px 0 0; font-size: 14px; }
.mfps-body { padding-block-start: 16px; }
.mfps h2 { margin-block-end: 10px; }
.mfps-footer { padding-block-start: 8px; }

/* Profile Promos: two equal columns on desktop (layout only); one column on phones. A fifth card keeps the left column's width. */
@media (min-width: 900px) {
	#mf-promos-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
	#mf-promos-list > .mf-promo-slot[hidden], #mf-promos-list > .mf-coupon-result[hidden] { display: none; }
	#mf-promos-list.mf-coupon-block { gap: 14px; }
	#mf-promos-list.mf-coupon-block > .mf-promo-slot, #mf-promos-list.mf-coupon-block > .mf-promo-slot + .mf-promo-slot { min-inline-size: 0; margin: 0; display: flex; }
	#mf-promos-list > .mf-promo-slot > .mfpc-card { flex: 1 1 auto; margin: 0; }
}

/* « Un avantage, en trois étapes. » : readable on a phone (same scale as the page's other section titles, steps legible without zooming) */
.mf-offres .mfo-how > h2 { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin-block-end: 18px; }
.mf-offres .mfo-how b { font-size: 14px; font-weight: 800; }
.mf-offres .mfo-how strong { font-size: 16px; font-weight: 750; line-height: 1.3; }
.mf-offres .mfo-how span { font-size: 14px; line-height: 1.45; }
@media (max-width: 768px) { .mf-offres .mfo-how > h2 { font-size: 22px; } .mf-offres .mfo-how p { padding-inline-start: 42px; } }