/* Souss Marep - ElectroPlus-style home */
.smh, .smh * { box-sizing: border-box; font-family: "Noto Sans", -apple-system, Segoe UI, Roboto, sans-serif; }
.smh { max-width: 1460px; margin: 0 auto; padding: 0 10px; color: #16181d; }
.smh a { text-decoration: none; color: inherit; }
.smh h2 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -.3px; color: #16181d; }

/* ---------- hero ---------- */
.smh-hero { margin: 8px 0 30px; }
.smh-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 336px); gap: 18px; }
.smh-card { position: relative; display: block; overflow: hidden; border-radius: 14px; background-size: cover; background-position: center; background-color: #e9e6df; transition: transform .35s, box-shadow .35s; }
.smh-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.smh-card--1 { grid-column: 1; grid-row: 1 / span 2; }
.smh-card--2 { grid-column: 2; grid-row: 1; }
.smh-card--3 { grid-column: 2; grid-row: 2; }
.smh-card--4 { grid-column: 3; grid-row: 1; }
.smh-card--5 { grid-column: 3; grid-row: 2; }
.smh-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 42%, rgba(0,0,0,0) 68%); }
.smh-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; color: #fff; }
.smh-badge { display: inline-block; background: rgba(255,255,255,.94); color: #1a1a1a; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 6px; margin-bottom: 10px; }
.smh-title { color: #fff; font-size: 20px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; max-width: 90%; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.smh-card--1 .smh-title { font-size: 28px; max-width: 78%; }
.smh-arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: #1a1a1a; font-size: 18px; }
.smh-card:hover .smh-arrow { transform: translateX(3px); }

/* ---------- brand strip ---------- */
.smh-brands { border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 20px 0; margin-bottom: 34px; }
.smh-brands-track { display: flex; align-items: center; justify-content: space-around; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.smh-brands-track::-webkit-scrollbar { display: none; }
.smh-brand { flex: 0 0 auto; height: 42px; display: flex; align-items: center; opacity: .5; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.smh-brand:hover { opacity: 1; filter: grayscale(0); }
.smh-brand img { max-height: 40px; max-width: 130px; object-fit: contain; }
.smh-brand span { font-weight: 700; font-size: 17px; color: #444; }

/* ---------- section ---------- */
.smh-sec { margin: 0 0 46px; }
.smh-sec--tinted { background: #f5f6f7; border-radius: 16px; padding: 28px 24px; }
.smh-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.smh-seeall { font-size: 13px; font-weight: 600; color: #4a4f57; white-space: nowrap; }
.smh-seeall:hover { color: #16181d; }

/* ---------- product carousel ---------- */
.smh-carousel { position: relative; }
.smh-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4*26px) / 5.15); gap: 26px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px; }
.smh-row::-webkit-scrollbar { display: none; }
.smh-nav { position: absolute; top: 38%; z-index: 6; width: 46px; height: 46px; border-radius: 50%; background: #111418; color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; box-shadow: 0 5px 16px rgba(0,0,0,.28); transition: background .2s, transform .2s; }
.smh-nav:hover { background: #000; transform: scale(1.06); }
.smh-nav-prev { left: -14px; }
.smh-nav-next { right: -14px; }

/* ---------- product card (borderless, electroplus) ---------- */
.smh-pcard { scroll-snap-align: start; background: transparent; border: none; padding: 4px; display: flex; flex-direction: column; transition: transform .2s; }
.smh-pcard:hover { transform: translateY(-2px); }
.smh-pcard-imgwrap { position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.smh-pcard-img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.smh-pcard-flag { color: #c8102e; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.smh-pcard-brand { font-size: 13px; font-weight: 800; color: #16181d; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .2px; }
.smh-pcard-name { font-size: 13.5px; line-height: 1.4; color: #43484f; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.smh-pcard-ref { font-size: 11.5px; color: #aeb3ba; margin-bottom: 10px; }
.smh-pcard-price { font-size: 19px; font-weight: 800; color: #16181d; margin-top: auto; }
.smh-pcard-old { font-size: 12px; color: #9aa0a8; margin-top: 3px; }

/* ---------- category tiles ---------- */
.smh-catrow { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5*16px) / 6); gap: 16px; overflow-x: auto; scrollbar-width: none; }
.smh-catrow::-webkit-scrollbar { display: none; }
.smh-cat { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; background-color: #dcdfe3; display: flex; align-items: flex-end; transition: transform .3s; }
.smh-cat:hover { transform: translateY(-3px); }
.smh-cat-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 60%); }
.smh-cat-name { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 14px; padding: 14px; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ---------- financement ---------- */
.smh-fin { background: #e7f1ea; border-radius: 16px; margin: 0 0 46px; }
.smh-fin-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 42px 46px; flex-wrap: wrap; }
.smh-fin-txt h2 { font-size: 30px; margin: 0 0 8px; color: #123524; }
.smh-fin-txt p { font-size: 18px; color: #2f5240; margin: 0; }
.smh-fin-btn { background: #123524; color: #fff; font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 8px; transition: background .25s; white-space: nowrap; }
.smh-fin-btn:hover { background: #1c4d35; color: #fff; }

/* ---------- blog ---------- */
.smh-blogrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.smh-blog { position: relative; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; background-color: #cfd3d8; display: flex; align-items: flex-end; }
.smh-blog-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 62%); }
.smh-blog-title { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.3; padding: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .smh-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .smh-card--1 { grid-column: 1 / span 2; grid-row: auto; min-height: 320px; }
    .smh-card--2, .smh-card--3, .smh-card--4, .smh-card--5 { grid-column: auto; grid-row: auto; min-height: 240px; }
    .smh-row { grid-auto-columns: calc((100% - 2*20px) / 2.3); }
    .smh-catrow { grid-auto-columns: calc((100% - 2*16px) / 3.2); }
    .smh-blogrow { grid-template-columns: 1fr; }
    .smh-fin-txt h2 { font-size: 24px; }
    .smh-nav { display: none; }
}
@media (max-width: 575px) {
    .smh-grid { grid-template-columns: 1fr; }
    .smh-card--1, .smh-card--2, .smh-card--3, .smh-card--4, .smh-card--5 { grid-column: 1; }
    .smh-row { grid-auto-columns: calc((100% - 20px) / 1.7); }
    .smh-catrow { grid-auto-columns: calc((100% - 16px) / 2.2); }
}
