/* ==========================================================================
   Mega menus de l'en-tête (Modules\Menu\Libraries\MegaMenu), configurés dans
   /admin/menus/mega/{id}. Style propre (le CSS Tailwind du thème est compilé).
   ========================================================================== */
.mm {
	--mm-bg: #f1ece3;
	--mm-line: #ddd3c3;
	--mm-title: #939b38;
	--mm-pill: #939b38;
	--mm-pill-hover: #7d8430;
	--mm-text: #4b4136;
	--mm-acc: #ec5a13;
	background: var(--mm-bg);
	color: var(--mm-text);
}
.mm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 1.4rem 1rem 1.6rem; }
.mm-bloc { min-width: 0; }

/* Titres de section : texte entre deux traits */
.mm-titre { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; color: var(--mm-title); font-size: 1.25rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.mm-titre::before, .mm-titre::after { content: ''; flex: 1; height: 2px; background: var(--mm-title); opacity: .55; border-radius: 2px; }

/* Icônes rondes + libellé */
.mm-icones-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 1rem 1.4rem; }
.mm-icones { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem .6rem; margin: 0; padding: 0; list-style: none; }
.mm-ico { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 5.2rem; max-width: 8rem; text-decoration: none; color: var(--mm-text); }
.mm-cercle { display: flex; align-items: center; justify-content: center; width: 4.8rem; height: 4.8rem; border-radius: 50%; background: #fff; color: #5b5550; box-shadow: 0 1px 2px rgba(80, 60, 30, .08); transition: transform .2s, box-shadow .2s; }
.mm-cercle svg { width: 3.5rem; height: 3.5rem; }
.mm-cercle img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.mm-ico-label { font-size: 1rem; line-height: 1.1; text-align: center; text-transform: uppercase; }
.mm-ico:hover .mm-cercle, .mm-ico:focus-visible .mm-cercle { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(80, 60, 30, .45); }
.mm-ico:hover .mm-ico-label { color: var(--mm-title); }

/* Boutons « pilules » */
.mm-pills { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.mm-icones-wrap .mm-pills { padding-left: 1.4rem; border-left: 3px solid var(--mm-line); align-self: center; }
.mm-pills--ligne { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.mm-pill { display: inline-block; padding: .45rem 1.1rem; border-radius: .45rem; background: var(--mm-pill); color: #fff; font-size: 1rem; line-height: 1.2; text-transform: uppercase; text-align: center; text-decoration: none; transition: background-color .2s; }
.mm-pills .mm-pill { display: block; min-width: 8.5rem; white-space: nowrap; }
a.mm-pill:hover, .mm-promo:hover .mm-pill { background: var(--mm-pill-hover); color: #fff; }

/* Encart illustré */
.mm-promo { display: flex; align-items: stretch; overflow: hidden; min-height: 8.5rem; border-radius: .8rem; background: #fff; text-decoration: none; color: var(--mm-text); box-shadow: 0 1px 3px rgba(80, 60, 30, .08); transition: box-shadow .2s; }
.mm-promo:hover { box-shadow: 0 10px 22px -12px rgba(80, 60, 30, .5); }
.mm-promo-img { flex: 0 0 45%; background: var(--mm-bg); }
.mm-promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-promo-txt { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem; text-align: center; }
.mm-promo-kicker { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 1.15rem; color: var(--mm-acc); }
.mm-promo-titre { font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: #3b3530; }
.mm-promo .mm-pill { margin-top: .45rem; }

/* Logos de marques */
.mm-bloc--marques { background: #fff; margin: 0 -1rem; padding: 1.4rem 1rem; }
.mm-bloc--marques:last-child { margin-bottom: -1.6rem; padding-bottom: 1.6rem; }
.mm-marques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.mm-marques a { display: flex; align-items: center; justify-content: center; height: 4.4rem; padding: .5rem; border-radius: .5rem; background: #ece7df; text-decoration: none; color: #6b645c; font-size: .95rem; text-transform: uppercase; transition: background-color .2s; }
.mm-marques img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.35); opacity: .85; transition: filter .2s, opacity .2s; }
.mm-marques a:hover { background: #e3ddd2; }
.mm-marques a:hover img { filter: none; opacity: 1; }
.mm-centre { margin: 1.2rem 0 0; text-align: center; }

@media (min-width: 640px) {
	.mm-marques { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.mm-wrap { margin: 0 2rem; border-radius: .8rem; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(60, 40, 20, .45); }
	.mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; max-width: 76rem; margin: 0 auto; padding: 1.8rem 2.5rem 2rem; }
	.mm-pleine { grid-column: 1 / -1; }
	.mm-icones-wrap { flex-wrap: nowrap; }
	.mm-icones { flex-wrap: nowrap; }
	.mm-bloc--marques { margin: 0 -100vmax; padding: 1.6rem 100vmax; }
	.mm-bloc--marques:last-child { margin-bottom: -2rem; padding-bottom: 1.8rem; }
	.mm-bloc--marques.mm-demi { margin: 0; padding: 0; background: transparent; }
	.mm-marques { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
	.mm-bloc--marques.mm-demi .mm-marques { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mm-bloc--promo { display: flex; align-items: center; }
	.mm-bloc--promo .mm-promo { width: 100%; }
}
