/* JSEM Compare — mega menu (ordinateur / tablette / mobile) */
.jsem-mm { --mm-navy: #0B1B33; --mm-text: #2A3547; --mm-muted: #586274; --mm-line: #DCE1EA; --mm-blue: #1A4FD8; --mm-blue-d: #133BA6; --mm-blue-l: #E8F0FE; --mm-green: #0B7A47; --mm-offset: 10px; position: relative; font-family: Inter, system-ui, -apple-system, sans-serif; }
.jsem-mm *, .jsem-mm *::before, .jsem-mm *::after { box-sizing: border-box; }
.jsem-mm .jsem-mm__nav { position: relative; }
.jsem-mm ul { list-style: none; margin: 0; padding: 0; }

/* Barre sur une ligne */
.jsem-mm .jsem-mm__bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jsem-mm .jsem-mm__bar::-webkit-scrollbar { display: none; }
.jsem-mm .jsem-mm__item { flex: 0 0 auto; }
.jsem-mm .jsem-mm__top { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; border-radius: 8px; color: var(--mm-navy); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.jsem-mm .jsem-mm__top:hover, .jsem-mm .jsem-mm__top[aria-expanded="true"], .jsem-mm .jsem-mm__top.is-current { color: var(--mm-blue); background: #F5F8FF; }
.jsem-mm .jsem-mm__top[aria-haspopup]::after { content: ""; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; transition: transform .15s; }
.jsem-mm .jsem-mm__top[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); opacity: 1; }
.jsem-mm .jsem-mm__all { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-right: 8px; padding: 0 13px; border: 0; border-radius: 8px; background: var(--mm-blue-l); color: var(--mm-blue); font: 700 15px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.jsem-mm .jsem-mm__all:hover, .jsem-mm .jsem-mm__all[aria-expanded="true"] { background: var(--mm-blue); color: #FFFFFF; }
.jsem-mm .jsem-mm__all-short { display: none; }
.jsem-mm .jsem-mm__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 16px; }
.jsem-mm .jsem-mm__burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.jsem-mm .is-missing { outline: 1px dashed #C98A12; outline-offset: 2px; opacity: .6; }

/* Panneaux */
.jsem-mm .jsem-mm__panels { position: absolute; left: 0; right: 0; top: calc(100% + var(--mm-offset)); z-index: 1000; }
.jsem-mm .jsem-mm__panel { display: flex; gap: 0; background: #FFFFFF; border: 1px solid var(--mm-line); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 24px 48px rgba(11, 27, 51, .16); overflow: hidden; animation: jsemMmIn .14s ease-out; }
.jsem-mm .jsem-mm__panel[hidden] { display: none; }
@keyframes jsemMmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.jsem-mm .jsem-mm__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.jsem-mm .jsem-mm__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 22px 24px; padding: 26px 28px 20px; }
.jsem-mm .jsem-mm__coltitle { display: block; margin-bottom: 10px; color: var(--mm-navy); font: 700 15px/1.3 Manrope, Inter, sans-serif; text-decoration: none; }
a.jsem-mm__coltitle:hover { color: var(--mm-blue); }
.jsem-mm .jsem-mm__col li { margin: 0; }
.jsem-mm .jsem-mm__link { display: block; padding: 5px 0; color: var(--mm-text); font-size: 14px; line-height: 1.35; text-decoration: none; }
.jsem-mm .jsem-mm__link:hover, .jsem-mm .jsem-mm__link:focus-visible { color: var(--mm-blue); text-decoration: underline; }
.jsem-mm .jsem-mm__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: auto; padding: 14px 28px; border-top: 1px solid #EEF1F6; background: #FAFBFD; font-size: 14px; }
.jsem-mm .jsem-mm__seeall { color: var(--mm-blue); font-weight: 700; text-decoration: none; }
.jsem-mm .jsem-mm__seeall:hover { text-decoration: underline; }
.jsem-mm .jsem-mm__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--mm-muted); }
.jsem-mm .jsem-mm__brand { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid var(--mm-line); border-radius: 999px; background: #FFFFFF; color: var(--mm-navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.jsem-mm .jsem-mm__brand:hover { border-color: var(--mm-blue); color: var(--mm-blue); }

.jsem-mm .jsem-mm__aside { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; background: #F3F5F9; border-left: 1px solid var(--mm-line); }
.jsem-mm .jsem-mm__asidetitle { margin: 0 0 2px; color: var(--mm-navy); font: 700 14px/1.3 Manrope, Inter, sans-serif; }
.jsem-mm .jsem-mm__deals { display: flex; flex-direction: column; gap: 8px; }
.jsem-mm .jsem-mm__deal { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--mm-line); border-radius: 10px; background: #FFFFFF; text-decoration: none; color: var(--mm-text); }
.jsem-mm .jsem-mm__deal:hover { border-color: var(--mm-blue); }
.jsem-mm .jsem-mm__dimg { flex: 0 0 48px; height: 48px; border-radius: 8px; background: #EEF1F6; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.jsem-mm .jsem-mm__dimg img { width: 100%; height: 100%; object-fit: contain; }
.jsem-mm .jsem-mm__dtxt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jsem-mm .jsem-mm__dtitle { color: var(--mm-navy); font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jsem-mm .jsem-mm__dmeta { display: flex; align-items: center; gap: 8px; }
.jsem-mm .jsem-mm__dmeta strong { color: var(--mm-navy); font: 800 15px/1 Manrope, Inter, sans-serif; }
.jsem-mm .jsem-mm__dscore { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; background: var(--mm-green); color: #FFFFFF; font-size: 11px; font-weight: 800; }
.jsem-mm .jsem-mm__cta { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 8px; background: var(--mm-blue); color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; }
.jsem-mm .jsem-mm__cta:hover { background: var(--mm-blue-d); color: #FFFFFF; }
.jsem-mm .jsem-mm__guide { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--mm-line); color: var(--mm-navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.jsem-mm .jsem-mm__guide span { color: var(--mm-green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.jsem-mm .jsem-mm__guide:hover { border-color: var(--mm-blue); }

/* Panneau « Toutes les catégories » */
.jsem-mm .jsem-mm__panel--all { display: block; }
.jsem-mm .jsem-mm__panel--all[hidden] { display: none; }
.jsem-mm .jsem-mm__overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 28px; padding: 26px 28px; }
.jsem-mm .jsem-mm__ovtitle { display: block; margin-bottom: 8px; color: var(--mm-navy); font: 800 16px/1.3 Manrope, Inter, sans-serif; text-decoration: none; }
a.jsem-mm__ovtitle:hover { color: var(--mm-blue); }

/* Tiroir mobile */
.jsem-mm .jsem-mm__drawer { position: fixed; inset: 0; z-index: 100000; }
.jsem-mm .jsem-mm__drawer[hidden] { display: none; }
.jsem-mm .jsem-mm__overlay { position: absolute; inset: 0; background: rgba(11, 27, 51, .55); animation: jsemMmFade .2s ease-out; }
@keyframes jsemMmFade { from { opacity: 0; } to { opacity: 1; } }
.jsem-mm .jsem-mm__sheet { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 400px); display: flex; flex-direction: column; background: #FFFFFF; overflow-y: auto; overscroll-behavior: contain; animation: jsemMmSlide .22s ease-out; }
@keyframes jsemMmSlide { from { transform: translateX(-100%); } to { transform: none; } }
.jsem-mm .jsem-mm__dhead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--mm-navy); color: #FFFFFF; font: 800 18px/1 Manrope, Inter, sans-serif; }
.jsem-mm .jsem-mm__close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #16294A; color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer; }
.jsem-mm .jsem-mm__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--mm-line); }
.jsem-mm .jsem-mm__quick a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; background: var(--mm-blue-l); color: var(--mm-blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.jsem-mm .jsem-mm__acc > li { border-bottom: 1px solid var(--mm-line); }
.jsem-mm .jsem-mm__acc button, .jsem-mm .jsem-mm__accl { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0 16px; border: 0; background: none; color: var(--mm-navy); font: 700 16px/1.2 Inter, system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.jsem-mm .jsem-mm__chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.jsem-mm .jsem-mm__acc button[aria-expanded="true"] { color: var(--mm-blue); }
.jsem-mm .jsem-mm__acc button[aria-expanded="true"] .jsem-mm__chev { transform: rotate(-135deg); }
.jsem-mm .jsem-mm__accpanel { padding: 0 16px 14px; }
.jsem-mm .jsem-mm__accpanel[hidden] { display: none; }
.jsem-mm .jsem-mm__accpanel > .jsem-mm__seeall { display: block; padding: 4px 0 10px; }
.jsem-mm .jsem-mm__dgroup { padding: 8px 0; border-top: 1px solid #EEF1F6; }
.jsem-mm .jsem-mm__dgroup .jsem-mm__coltitle { margin-bottom: 4px; }
.jsem-mm .jsem-mm__dgroup .jsem-mm__link { padding: 8px 0 8px 10px; font-size: 15px; }
.jsem-mm .jsem-mm__dfoot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding: 16px; background: #F3F5F9; }
.jsem-mm .jsem-mm__dfoot a { padding: 6px 0; color: var(--mm-muted); font-size: 14px; text-decoration: none; }
html.jsem-mm-lock, html.jsem-mm-lock body { overflow: hidden; }

/* Bouton Menu (ligne du logo) */
html body .jsem-mm-toggle:hover { background: #D6E4FD; color: #133BA6; }
html body .jsem-mm-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #C7D8FB; border-radius: 10px; background: #E8F0FE; color: #1A4FD8; font: 700 15px/1 Inter, system-ui, sans-serif; cursor: pointer; }
html body .jsem-mm-toggle .jsem-mm__burger { width: 18px; }

/* Petits écrans d'ordinateur */
@media (max-width: 1240px) {
	.jsem-mm .jsem-mm__top { padding: 0 5px; font-size: 14px; }
	.jsem-mm .jsem-mm__aside { flex-basis: 260px; }
}
/* Tablette : panneaux en deux colonnes, bons plans sous les colonnes */
@media (max-width: 1024px) {
	.jsem-mm .jsem-mm__panel { flex-direction: column; max-height: calc(100vh - 200px); overflow-y: auto; }
	.jsem-mm .jsem-mm__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
	.jsem-mm .jsem-mm__foot { padding: 12px 20px; }
	.jsem-mm .jsem-mm__aside { flex-basis: auto; border-left: 0; border-top: 1px solid var(--mm-line); padding: 16px 20px; }
	.jsem-mm .jsem-mm__deals { flex-direction: row; }
	.jsem-mm .jsem-mm__deals li { flex: 1 1 0; min-width: 0; }
	.jsem-mm .jsem-mm__link { padding: 8px 0; }
}
/* Mobile : la barre devient un raccourci défilant, les panneaux passent dans le tiroir */
@media (max-width: 767px) {
	.jsem-mm .jsem-mm__panels { display: none; }
	.jsem-mm .jsem-mm__top[aria-haspopup]::after { display: none; }
	.jsem-mm .jsem-mm__top { min-height: 38px; padding: 0 10px; font-size: 14px; }
	.jsem-mm .jsem-mm__all { min-height: 38px; margin-right: 4px; padding: 0 12px; font-size: 14px; }
	.jsem-mm .jsem-mm__all-txt { display: none; }
	.jsem-mm .jsem-mm__all-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
	.jsem-mm .jsem-mm__panel, .jsem-mm .jsem-mm__overlay, .jsem-mm .jsem-mm__sheet { animation: none; }
}
