/* Partie publique Marocannoncer Marchés — styles neutres, préfixe .mam- pour ne pas toucher au thème. */
.mam-wrap { --mam-accent: #0f6b4f; --mam-text: #1f2933; --mam-muted: #5f6b76; --mam-line: #e3e7ea; --mam-bg: #f6f8f9;
	max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; color: var(--mam-text); }
.mam-wrap a { color: var(--mam-accent); }
.mam-crumbs { font-size: 14px; color: var(--mam-muted); margin-bottom: 12px; }
.mam-h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; margin: 4px 0 18px; }
.mam-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--mam-bg); border: 1px solid var(--mam-line); border-radius: 8px; padding: 12px; margin-bottom: 20px; }
.mam-search input[type=search] { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid #c9d1d6; border-radius: 6px; }
.mam-search select { padding: 9px 34px 9px 8px; border: 1px solid #c9d1d6; border-radius: 6px; max-width: 100%; }
.mam-check { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.mam-button { display: inline-block; background: var(--mam-accent); color: #fff !important; border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 600; text-decoration: none; cursor: pointer; }
.mam-button:hover { filter: brightness(1.1); }
.mam-button-ghost { background: transparent; color: var(--mam-accent) !important; border: 1px solid var(--mam-accent); }
.mam-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
@media (max-width: 900px) { .mam-layout { grid-template-columns: 1fr; } }
.mam-total { color: var(--mam-muted); margin: 0 0 10px; }
.mam-card { border: 1px solid var(--mam-line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.mam-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--mam-muted); margin-bottom: 6px; }
.mam-card-title { font-size: 17px; line-height: 1.35; margin: 0 0 6px; }
.mam-card-title a { text-decoration: none; }
.mam-card-buyer { font-size: 14px; color: var(--mam-muted); margin-bottom: 8px; }
.mam-card-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.mam-tag { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #eef1f3; color: #3d4852; }
.mam-tag-travaux { background: #fff3e0; color: #8a4b00; }
.mam-tag-fournitures { background: #e8f1fd; color: #1c4f8f; }
.mam-tag-services { background: #eaf7ef; color: #1d6b3a; }
.mam-tag-closed { background: #fdecec; color: #9b1c1c; }
.mam-countdown { color: #9a5b00; font-weight: 600; }
.mam-side h2 { font-size: 16px; margin: 0 0 8px; }
.mam-list { list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; }
.mam-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--mam-line); }
.mam-count { color: var(--mam-muted); }
.mam-pages { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 18px 0; }
.mam-paywall { border: 1px solid #f0d9a7; background: #fffaf0; border-radius: 8px; padding: 16px; margin: 16px 0; }
.mam-paywall p { margin: 0 0 10px; }
.mam-link { margin-left: 12px; font-size: 14px; }
.mam-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.mam-table th, .mam-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--mam-line); }
.mam-table th { width: 32%; color: var(--mam-muted); font-weight: 600; }
.mam-table ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) { .mam-table th, .mam-table td { display: block; width: auto; } .mam-table th { border-bottom: 0; padding-bottom: 0; } }
.mam-blurred td { color: transparent; text-shadow: 0 0 8px rgba(0,0,0,.45); user-select: none; }
.mam-unknown { color: var(--mam-muted); font-style: italic; }
.mam-source, .mam-updated, .mam-notice { font-size: 13px; color: var(--mam-muted); }
.mam-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.mam-offer { border: 1px solid var(--mam-line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; }
.mam-offer ul { flex: 1 0 auto; }
.mam-offer .mam-button { align-self: flex-start; }
.mam-offer h2 { font-size: 18px; margin: 0 0 6px; }
.mam-price { font-size: 26px; font-weight: 700; color: var(--mam-accent); margin: 0 0 10px; }
.mam-account-links { margin: -6px 0 10px; font-size: 14px; text-align: right; }
.mam-account-links a { margin-left: 14px; }
