/**
 * Blocs marketplace accueil / index — préfixe .faso-hm
 * Couleurs alignées FasoYaar (--burkina-green / #0aa61f possibles via style parent)
 */

 .faso-hm {
    --faso-hm-green: #0aa61f;
    --faso-hm-green-dark: #00843d;
    --faso-hm-card: #ffffff;
    --faso-hm-border: #e8e8e8;
    --faso-hm-text: #1a1a1a;
    --faso-hm-muted: #5c5c5c;
    --faso-hm-radius: 14px;
    --faso-hm-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: #f3f4f6;
    padding: 1.25rem 0 1.5rem;
}

.faso-hm__inner {
    max-width: 100%;
}

.faso-hm__head {
    margin-bottom: 1rem;
    padding: 0 4px;
}

.faso-hm__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--faso-hm-text);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.faso-hm__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--faso-hm-muted);
    line-height: 1.4;
}

/* ——— Panneaux catégories ——— */
.faso-hm-panel {
    background: var(--faso-hm-card);
    border-radius: var(--faso-hm-radius);
    box-shadow: var(--faso-hm-shadow);
    border: 1px solid var(--faso-hm-border);
    padding: 14px 14px 12px;
    height: 100%;
}

.faso-hm-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.faso-hm-panel__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
}

.faso-hm-panel__title a {
    color: var(--faso-hm-text);
    text-decoration: none;
}

.faso-hm-panel__title a:hover {
    color: var(--faso-hm-green);
}

.faso-hm-panel__explore {
    flex-shrink: 0;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
}

/* Bandeau visuel (URL distante, ex. Cloudinary) */
.faso-hm-panel__hero {
    width: 100%;
    height: 128px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0f0f0 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faso-hm-panel__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.faso-hm-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.faso-hm-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: inherit !important;
    padding: 8px 4px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
    min-width: 0;
}

.faso-hm-cell:hover {
    background: #f8fff9;
    transform: translateY(-1px);
}

.faso-hm-cell__img-wrap {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(160deg, #fafafa 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faso-hm-cell__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.faso-hm-cell:hover .faso-hm-cell__img-wrap img {
    transform: scale(1.04);
}

.faso-hm-cell__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--faso-hm-text);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
    .faso-hm__title {
        font-size: 1.35rem;
    }
    .faso-hm-panel__grid {
        gap: 12px;
    }
}

/* ——— Promos ——— */
.faso-hm--promos {
    background: #fff;
    padding-top: 0.5rem;
    padding-bottom: 1.25rem;
}

.faso-hm-promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .faso-hm-promo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faso-hm-promo-card {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-radius: var(--faso-hm-radius);
    border: 1px solid var(--faso-hm-border);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: var(--faso-hm-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 0;
}

.faso-hm-promo-card:hover {
    box-shadow: 0 6px 20px rgba(10, 166, 31, 0.12);
    transform: translateY(-2px);
}

.faso-hm-promo-card--accent {
    background: linear-gradient(135deg, rgba(10, 166, 31, 0.08) 0%, #fff 55%);
    border-color: rgba(10, 166, 31, 0.25);
}

.faso-hm-promo-card__body {
    padding: 14px 14px 8px;
    flex: 1;
}

.faso-hm-promo-card__kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--faso-hm-green);
    margin-bottom: 4px;
}

.faso-hm-promo-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--faso-hm-text);
    line-height: 1.3;
    margin-bottom: 8px;
}

.faso-hm-promo-card__cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--faso-hm-green-dark);
}

.faso-hm-promo-card__media {
    height: 120px;
    overflow: hidden;
    background: #eee;
}

.faso-hm-promo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Trust strip */
.faso-hm-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 12px;
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
    border-radius: var(--faso-hm-radius);
    border: 1px solid var(--faso-hm-border);
}

@media (min-width: 576px) {
    .faso-hm-trust {
        grid-template-columns: repeat(4, 1fr);
    }
}

.faso-hm-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.faso-hm-trust__icon {
    font-size: 1.35rem;
    color: var(--faso-hm-green);
    flex-shrink: 0;
}

.faso-hm-trust__item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--faso-hm-text);
}

.faso-hm-trust__item span {
    font-size: 0.72rem;
    color: var(--faso-hm-muted);
}

/* Bouton burkina si non défini sur la page */
.faso-hm .btn-burkina {
    background-color: var(--faso-hm-green);
    color: #fff;
    border: none;
}

.faso-hm .btn-burkina:hover {
    background-color: var(--faso-hm-green-dark);
    color: #fff;
}
