/* ==========================================================================
   Medibateau — design system (charte graphique v1.0, Nov. 2026)
   Colours, fonts and buttons also live in Kadence global settings
   (Customizer > Colors / Typography / Buttons) so the editor matches.
   Logical properties (margin-inline, inset-inline…) keep RTL (Arabic) correct.
   ========================================================================== */

/* ---------- Arabic typeface (Noto Sans Arabic, OFL, self-hosted) ----------
   Open Sans and Mulish have no Arabic glyphs. Noto Sans Arabic shares
   Open Sans' design lineage. Arabic subset only (unicode-range): Latin text
   such as product references keeps the brand fonts. */
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-arabic/noto-sans-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-arabic/noto-sans-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-arabic/noto-sans-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-arabic/noto-sans-arabic-arabic-800.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
	--mb-navy: #2D3170;
	--mb-abyss: #1E2150;
	--mb-sky: #5BBDE8;
	--mb-ocean: #2F8FCF;
	--mb-mist: #B5DCF2;
	--mb-indigo: #474A92;
	--mb-silver: #A8A39A;
	--mb-charcoal: #33353F;
	--mb-slate: #6B7080;
	--mb-cloud: #F3F6FA;
	--mb-white: #FFFFFF;
	--mb-line: #DDE3EC;
	--mb-gradient: linear-gradient(100deg, var(--mb-abyss) 0%, var(--mb-navy) 38%, var(--mb-ocean) 78%, var(--mb-sky) 100%);

	--mb-font-heading: "Open Sans", "Noto Sans Arabic", system-ui, sans-serif;
	--mb-font-body: "Mulish", "Noto Sans Arabic", system-ui, sans-serif;

	--mb-radius-btn: 6px;
	--mb-radius: 12px;
	--mb-radius-lg: 18px;
	--mb-shadow: 0 1px 2px rgba(30, 33, 80, .06), 0 8px 24px rgba(30, 33, 80, .08);
	--mb-shadow-hover: 0 2px 4px rgba(30, 33, 80, .08), 0 16px 40px rgba(30, 33, 80, .14);

	--mb-container: 1240px;
	--mb-gutter: clamp(16px, 4vw, 32px);
	--mb-space-1: .5rem;
	--mb-space-2: 1rem;
	--mb-space-3: 1.5rem;
	--mb-space-4: 2rem;
	--mb-space-5: 3rem;
	--mb-space-6: clamp(3.5rem, 7vw, 6rem);
	--mb-header-h: 84px;
}

html:lang(ar) {
	--mb-font-heading: "Noto Sans Arabic", "Open Sans", system-ui, sans-serif;
	--mb-font-body: "Noto Sans Arabic", "Mulish", system-ui, sans-serif;
	--global-body-font-family: var(--mb-font-body);
	--global-heading-font-family: var(--mb-font-heading);
}
html:lang(ar) body,
html:lang(ar) :is(h1, h2, h3, h4, h5, h6, p, li, a, span, button, input, textarea, select, label, blockquote, figcaption, td, th, .mb-btn) {
	font-family: var(--mb-font-body);
}
html:lang(ar) :is(h1, h2, h3) { font-family: var(--mb-font-heading); letter-spacing: 0; }
/* Uppercase / letter-spacing make no sense in Arabic script. */
html:lang(ar) :is(h1, h3, h6, .mb-overline, .mb-tagline) { text-transform: none; letter-spacing: 0; }

/* ---------- Base ---------- */
body { color: var(--mb-charcoal); background: var(--mb-white); }
p, li { text-align: start; }
p { margin-block: 0 1.2em; } /* paragraph spacing ≈ 0.75 × line height */
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--mb-ocean); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.mb-container { width: 100%; max-width: calc(var(--mb-container) + 2 * var(--mb-gutter)); margin-inline: auto; padding-inline: var(--mb-gutter); }
.mb-hide-sm { }
@media (max-width: 767px) { .mb-hide-sm { display: none !important; } }

/* Typography helpers */
.mb-overline {
	display: inline-block; margin: 0 0 .75rem; font-family: var(--mb-font-body);
	font-size: .75rem; line-height: 1.333; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mb-ocean);
}
.mb-accent { color: var(--mb-ocean); }
.mb-dark .mb-accent, .mb-on-dark .mb-accent { color: var(--mb-sky); }
.mb-lead { font-size: 1.125rem; line-height: 1.65; color: var(--mb-charcoal); max-width: 68ch; }
.mb-caption { font-size: .75rem; line-height: 1.5; color: var(--mb-slate); }
.mb-tagline { font-family: var(--mb-font-body); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8125rem; }
.mb-demo-badge { display: inline-block; padding: .1em .5em; border-radius: 4px; background: #FFF4D6; color: #7A4B00; font-size: .7rem; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }

/* ---------- Buttons ---------- */
.mb-btn, .mb-btns .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.4em; border: 2px solid transparent; border-radius: var(--mb-radius-btn);
	font-family: var(--mb-font-body); font-size: 1.1875rem; font-weight: 700; line-height: 1.15; /* ≥ 18.66px bold = WCAG "large text": white on Ocean passes AA */
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.mb-btn:hover { transform: translateY(-1px); }
.mb-btn .mb-icon { width: 1.1em; height: 1.1em; flex: none; }
html[dir="rtl"] .mb-btn .mb-icon--arrow { transform: scaleX(-1); }
.mb-btn--primary { background: var(--mb-ocean); color: var(--mb-white); }
.mb-btn--primary:hover, .mb-btn--primary:focus-visible { background: var(--mb-navy); color: var(--mb-white); }
.mb-btn--navy { background: var(--mb-navy); color: var(--mb-white); }
.mb-btn--navy:hover { background: var(--mb-abyss); color: var(--mb-white); }
.mb-btn--outline { border-color: var(--mb-navy); color: var(--mb-navy); background: transparent; }
.mb-btn--outline:hover, .mb-btn--outline:focus-visible { background: var(--mb-navy); color: var(--mb-white); }
.mb-btn--sky { background: var(--mb-sky); color: var(--mb-abyss); }           /* Sky on dark backgrounds (navy text: 7.1:1) */
.mb-btn--sky:hover { background: var(--mb-white); color: var(--mb-abyss); }
.mb-btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--mb-white); background: transparent; }
.mb-btn--ghost-light:hover { background: var(--mb-white); color: var(--mb-abyss); border-color: var(--mb-white); }
.mb-btn--sm { min-height: 42px; padding: .5em 1em; font-size: 1rem; font-weight: 800; }
.mb-btn--block { width: 100%; }
.mb-btns { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.mb-link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--mb-ocean); text-decoration: none; }
.mb-link-arrow:hover { color: var(--mb-navy); text-decoration: underline; }
html[dir="rtl"] .mb-link-arrow .mb-icon { transform: scaleX(-1); }

/* ==========================================================================
   Header
   ========================================================================== */
.mb-header { position: relative; z-index: 50; background: var(--mb-white); }
.mb-topbar { background: var(--mb-abyss); color: #DCE3F2; font-size: .8125rem; }
.mb-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.mb-topbar__contact { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.mb-topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.mb-topbar__contact a:hover { color: var(--mb-sky); }
.mb-topbar__contact .mb-icon { width: 15px; height: 15px; color: var(--mb-sky); }
.mb-topbar__tools { display: flex; align-items: center; gap: 1rem; }

.mb-search { position: relative; display: flex; align-items: center; }
.mb-search input[type="search"] {
	width: 260px; height: 30px; padding-block: 0; padding-inline: .8rem 2.2rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--mb-radius-btn);
	background: rgba(255,255,255,.08); color: var(--mb-white); font-size: .8125rem;
}
.mb-search input::placeholder { color: #AEB8D3; }
.mb-search input:focus { outline: 2px solid var(--mb-sky); outline-offset: 0; background: rgba(255,255,255,.14); }
.mb-search button { position: absolute; inset-inline-end: 2px; display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; background: none; color: var(--mb-sky); cursor: pointer; }
.mb-search button .mb-icon { width: 16px; height: 16px; }

.mb-lang ul { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.mb-lang a { display: inline-block; padding: .3em .5em; border-radius: 4px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; line-height: 1; text-decoration: none; color: inherit; }
.mb-lang a:hover { color: var(--mb-sky); }
.mb-lang a.is-current { background: var(--mb-sky); color: var(--mb-abyss); }

.mb-mainbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-block-end: 1px solid var(--mb-line); transition: box-shadow .2s; }
.admin-bar .mb-mainbar { top: var(--wp-admin--admin-bar--height, 32px); }
.mb-mainbar.is-stuck { box-shadow: 0 6px 24px rgba(30,33,80,.08); }
.mb-mainbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--mb-header-h); }
.mb-logo { display: inline-flex; flex: none; }
.mb-logo__img { display: block; width: auto; max-width: none; height: 58px; }
.mb-logo--footer .mb-logo__img { height: 110px; }

.mb-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.mb-menu { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.mb-menu > li { position: relative; }
.mb-menu a { display: block; padding: .65rem .6rem; color: var(--mb-navy); font-family: var(--mb-font-body); font-size: .9375rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; border-radius: var(--mb-radius-btn); }
.mb-menu a:hover, .mb-menu a:focus-visible { color: var(--mb-ocean); }
.mb-menu > .current-menu-item > a, .mb-menu > .current-menu-ancestor > a, .mb-menu > .current_page_parent > a { color: var(--mb-ocean); box-shadow: inset 0 -3px 0 var(--mb-sky); border-radius: 0; }
.mb-menu .menu-item-has-children > a { display: inline-flex; align-items: center; gap: .25rem; }
.mb-menu .menu-item-has-children > a::after { content: ""; width: .45em; height: .45em; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mb-menu .sub-menu {
	position: absolute; inset-inline-start: 0; top: 100%; min-width: 240px; margin: 0; padding: .5rem; list-style: none;
	background: var(--mb-white); border: 1px solid var(--mb-line); border-radius: var(--mb-radius); box-shadow: var(--mb-shadow-hover);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.mb-menu li:hover > .sub-menu, .mb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mb-menu .sub-menu a { padding: .6rem .8rem; font-weight: 600; white-space: normal; }
.mb-menu .sub-menu a:hover { background: var(--mb-cloud); }

.mb-ctas { display: flex; align-items: center; gap: .5rem; flex: none; }
.mb-quote-count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding-inline: .3em; border-radius: 999px; background: var(--mb-white); color: var(--mb-ocean); font-size: .75rem; font-weight: 800; }
.mb-quote-count[hidden] { display: none; }

.mb-burger { display: none; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--mb-line); border-radius: var(--mb-radius-btn); background: var(--mb-white); color: var(--mb-navy); cursor: pointer; }
.mb-burger .mb-icon { width: 24px; height: 24px; }
.mb-burger__close { display: none; }
.mb-burger[aria-expanded="true"] .mb-burger__open { display: none; }
.mb-burger[aria-expanded="true"] .mb-burger__close { display: block; }

.mb-mobile-panel { position: fixed; inset: 0; top: var(--mb-panel-top, 0); z-index: 39; overflow-y: auto; background: var(--mb-white); border-block-start: 1px solid var(--mb-line); }
.mb-mobile-panel__inner { display: grid; gap: 1.25rem; padding: 1.25rem var(--mb-gutter) 3rem; }
.mb-mobile-panel .mb-search input[type="search"] { width: 100%; height: 46px; border-color: var(--mb-line); background: var(--mb-cloud); color: var(--mb-charcoal); font-size: 1rem; }
.mb-mobile-panel .mb-search input::placeholder { color: var(--mb-slate); }
.mb-mobile-panel .mb-search button { color: var(--mb-navy); height: 44px; width: 44px; }
.mb-nav--mobile .mb-menu { display: block; }
.mb-nav--mobile .mb-menu a { padding: .9rem .25rem; font-size: 1.0625rem; border-block-end: 1px solid var(--mb-line); border-radius: 0; box-shadow: none; }
.mb-nav--mobile .mb-menu .menu-item-has-children > a::after { display: none; }
.mb-nav--mobile .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; padding-inline-start: 1rem; min-width: 0; }
.mb-nav--mobile .sub-menu a { font-weight: 600; font-size: 1rem; }
.mb-ctas--mobile { display: grid; gap: .75rem; }
.mb-ctas--mobile .mb-btn { width: 100%; min-height: 50px; font-size: 1.0625rem; }
.mb-lang--mobile a { padding: .55em .8em; font-size: .875rem; color: var(--mb-navy); border: 1px solid var(--mb-line); }
.mb-lang--mobile a.is-current { border-color: var(--mb-sky); }
body.mb-panel-open { overflow: hidden; }

@media (max-width: 1279px) {
	.mb-menu a { padding-inline: .45rem; font-size: .875rem; }
	.mb-ctas--header .mb-btn--outline { display: none; }
}
@media (max-width: 1099px) {
	.mb-nav:not(.mb-nav--mobile), .mb-ctas--header .mb-btn--outline { display: none; }
	.mb-burger { display: grid; }
	.mb-mainbar__inner { justify-content: space-between; min-height: 72px; }
	.mb-ctas--header { margin-inline-start: auto; }
	.mb-logo__img { height: 46px; }
	.mb-topbar .mb-search { display: none; }
}
@media (max-width: 599px) {
	.mb-ctas--header { display: none; }
	.mb-topbar__contact li:nth-child(2) span { display: none; }
	.mb-logo__img { height: 42px; }
}
@media (min-width: 1100px) { .mb-mobile-panel { display: none !important; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.mb-footer {
	position: relative; isolation: isolate; overflow: hidden;
	margin-block-start: var(--mb-space-4); border-radius: 40px 40px 0 0;
	color: #C9D2E8; background: var(--mb-abyss);
}
.mb-footer::before { /* soft navy glow, top corner */
	content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(71, 74, 146, .45), transparent 70%); pointer-events: none;
}
html[dir="rtl"] .mb-footer::before { inset: -40% auto auto -10%; }
.mb-footer__main { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.mb-footer__grid { display: grid; grid-template-columns: minmax(380px, 1.1fr) 1.3fr 1.15fr; gap: clamp(2rem, 4.5vw, 4rem); }
.mb-footer__pitch { margin: 1.1rem 0 1.5rem; max-width: 36ch; color: #C9D2E8; line-height: 1.6; }
.mb-footer__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.mb-footer__actions .mb-btn { white-space: nowrap; min-height: 46px; padding: .6em 1.15em; font-size: .95rem; }
.mb-footer__title { margin: 0 0 1.25rem; font-family: var(--mb-font-body); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8F9BC2; }
html:lang(ar) .mb-footer__title { letter-spacing: 0; font-size: .9rem; }
.mb-footer__menu, .mb-footer__contact { margin: 0; padding: 0; list-style: none; }
.mb-footer__menu { columns: 2; column-gap: 2rem; }
.mb-footer__menu li { break-inside: avoid; padding-block: .3rem; }
.mb-footer a { color: #E7ECF7; text-decoration: none; transition: color .15s; }
.mb-footer__menu a:hover, .mb-footer__contact a:hover, .mb-footer__legal-menu a:hover { color: var(--mb-white); text-decoration: underline; text-underline-offset: 3px; }
.mb-footer__contact { display: grid; gap: .9rem; }
.mb-footer__contact li { display: flex; gap: .8rem; align-items: center; line-height: 1.45; }
.mb-footer__contact strong { display: block; color: var(--mb-white); font-weight: 700; font-size: .875rem; }
.mb-footer__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); }
.mb-footer__ico .mb-icon { width: 18px; height: 18px; color: var(--mb-sky); }
/* Buttons on dark: solid white + outline (no blue-on-navy). */
.mb-btn--light, .mb-footer a.mb-btn--light { background: var(--mb-white); color: var(--mb-abyss); }
.mb-btn--light:hover, .mb-btn--light:focus-visible, .mb-footer a.mb-btn--light:hover { background: var(--mb-cloud); color: var(--mb-abyss); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.mb-footer .mb-btn--ghost-light { border-color: rgba(255,255,255,.35); }
.mb-footer .mb-btn--ghost-light:hover { background: rgba(255,255,255,.08); color: var(--mb-white); border-color: rgba(255,255,255,.7); }
.mb-footer .mb-btn { text-decoration: none; }
.mb-footer__bottom { border-block-start: 1px solid rgba(255,255,255,.08); font-size: .8125rem; color: #8F9BC2; }
.mb-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; padding-block: 1.25rem; }
.mb-footer__bottom p { margin: 0; margin-inline-end: auto; }
.mb-footer__legal-menu { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.mb-footer__legal-menu a { color: #AEB8D3; }
.mb-lang--footer ul { display: flex; gap: .25rem; margin: 0; padding: .2rem; list-style: none; border-radius: 999px; background: rgba(255,255,255,.06); }
.mb-lang--footer a { display: block; padding: .25rem .65rem; border-radius: 999px; color: #AEB8D3; font-weight: 800; font-size: .75rem; text-decoration: none !important; }
.mb-lang--footer a:hover { color: var(--mb-white); }
.mb-lang--footer a.is-current { background: var(--mb-white); color: var(--mb-abyss); }
@media (max-width: 1199px) {
	.mb-footer__grid { grid-template-columns: 1fr 1fr; }
	.mb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.mb-footer { border-radius: 28px 28px 0 0; }
	.mb-footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
	.mb-footer__actions .mb-btn { flex: 1 1 100%; }
	.mb-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Catalog (products, families, product page) — matches the template's cards
   ========================================================================== */
.mb-wrap { padding-block: 1.5rem var(--mb-space-5); }
.mb-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem; font-size: .8125rem; color: var(--global-palette5, #6B7080); }
.mb-breadcrumbs a { color: inherit; text-decoration: none; }
.mb-breadcrumbs a:hover { color: var(--global-palette1); text-decoration: underline; }
.mb-breadcrumbs [aria-current] { color: var(--global-palette3); font-weight: 700; }
html[dir="rtl"] .mb-breadcrumbs__sep { transform: scaleX(-1); display: inline-block; }

.mb-pagehero { position: relative; overflow: hidden; margin-block-end: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; background: linear-gradient(120deg, var(--global-palette11, #1E2150) 0%, var(--global-palette3) 55%, var(--global-palette1) 130%); color: #fff; }
.mb-pagehero h1 { color: #fff; margin: 0 0 .75rem; font-size: clamp(1.9rem, 4vw, 3rem); }
.mb-pagehero .mb-overline { color: var(--global-palette10, #5BBDE8); }
.mb-pagehero__text, .mb-pagehero__text p { color: #E3E8F5; max-width: 760px; }
.mb-pagehero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.mb-chip { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--global-palette8); color: var(--global-palette3); font-size: .8125rem; font-weight: 700; text-decoration: none; border: 1px solid var(--global-palette7); }
.mb-chip:hover { background: var(--global-palette1); color: #fff; border-color: var(--global-palette1); }
.mb-chip--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

/* Filters */
.mb-catalog__filters { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; margin-block-end: 1.75rem; padding: 1.25rem; border-radius: 16px; background: var(--global-palette8); }
.mb-filter { display: grid; gap: .35rem; min-width: 0; flex: 1 1 170px; }
.mb-filter--search { flex: 2 1 280px; }
.mb-filter--actions { flex: 0 0 auto; }
.mb-filter label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--global-palette3); }
html:lang(ar) .mb-filter label { letter-spacing: 0; font-size: .85rem; }
.mb-filter input, .mb-filter select { width: 100%; height: 44px; padding-inline: .75rem; border: 1px solid #D5DCE7; border-radius: 6px; background: #fff; color: var(--global-palette4); font-size: .9375rem; }
.mb-filter input:focus, .mb-filter select:focus { border-color: var(--global-palette1); outline: 2px solid rgba(47,143,207,.25); }
.mb-filter--actions { display: flex; align-items: center; gap: .75rem; }
.mb-catalog__reset { font-size: .875rem; font-weight: 700; color: var(--global-palette5); }
.js .mb-filter--actions button[type="submit"] { /* kept for no-JS and keyboard users */ }
@media (max-width: 767px) { .mb-filter { flex-basis: calc(50% - .5rem); } .mb-filter--search, .mb-filter--actions { flex-basis: 100%; } }

.mb-catalog__count { margin: 0 0 1rem; font-weight: 700; color: var(--global-palette5); }
.mb-catalog__results.is-loading { opacity: .5; transition: opacity .15s; }
.mb-catalog__empty { padding: 2.5rem; text-align: center; border-radius: 16px; background: var(--global-palette8); }

/* Product grid & cards */
.mb-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.mb-product-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 34px rgba(0,0,0,.05); border: 1px solid #EEF1F6; transition: box-shadow .2s, transform .2s; }
.mb-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(30,33,80,.12); }
.mb-product-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--global-palette8); }
.mb-product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mb-product-card:hover .mb-product-card__media img { transform: scale(1.04); }
.mb-product-card__noimg { display: grid; place-items: center; height: 100%; color: var(--global-palette3); }
.mb-product-card__noimg svg { width: 64px; height: 64px; }
.mb-product-card__body { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: 1.1rem 1.2rem 1.25rem; }
.mb-product-card__ref { margin: 0; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--global-palette5); }
.mb-product-card__ref strong { color: var(--global-palette1); letter-spacing: .02em; }
.mb-product-card__title { margin: 0; font-size: 1.0625rem; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.mb-product-card__title a { color: var(--global-palette3); text-decoration: none; }
.mb-product-card__title a:hover { color: var(--global-palette1); }
.mb-product-card__meta { margin: 0; font-size: .8125rem; color: var(--global-palette5); }
.mb-product-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.mb-product-card__actions .mb-btn { flex: 1 1 auto; font-size: .875rem; min-height: 40px; padding-inline: .8rem; }
.mb-add-quote.is-added { background: var(--global-palette15, #1B7F4B); border-color: var(--global-palette15, #1B7F4B); color: #fff; }
.mb-add-quote.is-added .mb-icon--plus { display: none; }

.mb-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.mb-pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 6px; border: 1px solid #D5DCE7; color: var(--global-palette3); font-weight: 700; text-decoration: none; }
.mb-pagination a:hover, .mb-pagination a.is-current { background: var(--global-palette3); border-color: var(--global-palette3); color: #fff; }

/* Family cards ([mb_families]) */
.mb-family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.mb-family-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 16px; background: #fff; box-shadow: 0 0 34px rgba(0,0,0,.05); text-decoration: none; color: var(--global-palette4); transition: transform .2s, box-shadow .2s; }
.mb-family-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(30,33,80,.12); }
.mb-family-card__title { font-family: var(--global-heading-font-family); font-weight: 700; font-size: 1.25rem; color: var(--global-palette3); }
.mb-family-card__subs { font-size: .875rem; color: var(--global-palette5); }
.mb-family-card .mb-link-arrow { margin-top: auto; }

/* Product page */
.mb-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 899px) { .mb-product { grid-template-columns: 1fr; } }
.mb-product__main { margin: 0; overflow: hidden; border-radius: 24px; background: var(--global-palette8); aspect-ratio: 1 / 1; }
.mb-product__main img { width: 100%; height: 100%; object-fit: cover; }
.mb-product__noimg { display: grid; place-items: center; aspect-ratio: 1; border-radius: 24px; background: var(--global-palette8); color: var(--global-palette3); }
.mb-product__noimg svg { width: 120px; height: 120px; }
.mb-product__thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.mb-product__thumb { width: 76px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.mb-product__thumb.is-active, .mb-product__thumb:hover { border-color: var(--global-palette1); }
.mb-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mb-product__ref { margin: 0 0 .5rem; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--global-palette5); }
.mb-product__ref strong { margin-inline-start: .25rem; padding: .2rem .55rem; border-radius: 6px; background: var(--global-palette8); color: var(--global-palette1); font-size: .95rem; letter-spacing: .03em; }
.mb-product__title { margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; text-transform: none; }
.mb-product__family { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.mb-product__excerpt { font-size: 1.0625rem; }
.mb-product__h2 { margin: 1.75rem 0 .75rem; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--global-palette1); }
html:lang(ar) .mb-product__h2 { letter-spacing: 0; }
.mb-specs { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.mb-specs th, .mb-specs td { padding: .6rem .75rem; border-bottom: 1px solid #E6EAF1; text-align: start; }
.mb-specs th { width: 45%; font-weight: 700; color: var(--global-palette3); background: var(--global-palette8); }
.mb-product__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.mb-product__note { margin: .75rem 0 0; font-size: .8125rem; color: var(--global-palette5); }
.mb-docs { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.mb-docs a { display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border: 1px solid #E6EAF1; border-radius: 10px; color: var(--global-palette3); font-weight: 700; text-decoration: none; }
.mb-docs a:hover { border-color: var(--global-palette1); background: var(--global-palette8); }
.mb-docs small { margin-inline-start: auto; color: var(--global-palette5); font-weight: 400; }
.mb-product__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem 3rem; margin-top: 3rem; }
.mb-product__block p { margin: 0; }
.mb-product__description { grid-column: 1 / -1; }
.mb-related { margin-top: 3.5rem; }
.mb-related h2 { font-size: 1.6rem; }
.mb-special-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3.5rem; padding: 1.75rem 2rem; border-radius: 24px; background: var(--global-palette3); color: #fff; }
.mb-special-cta h2 { margin: 0; color: #fff; font-size: 1.5rem; text-transform: none; }

/* International presence */
.mb-presence { display: grid; gap: 1.25rem; }
.mb-country-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.mb-country { padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid #DDE3EC; color: var(--global-palette3); font-weight: 700; font-size: .875rem; }
.mb-country--origin { background: var(--global-palette3); color: #fff; border-color: var(--global-palette3); }

/* ---------- Page content blocks (core blocks inside pages) ---------- */
.entry-content > .mb-pagehero, .entry-content > .wp-block-group.mb-pagehero { margin-block: 1.5rem 2rem; }
.mb-block { margin-block: clamp(2.5rem, 5vw, 4rem); }
.mb-block > h2 { margin-top: 0; }
.mb-band { margin-block: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 3rem); border-radius: 24px; background: var(--global-palette3); color: #E3E8F5; }
.mb-band h2, .mb-band h3 { color: #fff; margin-top: 0; }
.mb-band p { color: #E3E8F5; max-width: 760px; }
.mb-buttons { gap: .75rem; }
.wp-block-button.is-style-mb-ghost-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.wp-block-button.is-style-mb-ghost-light .wp-block-button__link:hover { background: #fff; color: var(--global-palette3); }
.wp-block-button.is-style-mb-outline .wp-block-button__link { background: transparent; color: var(--global-palette3); border: 2px solid var(--global-palette3); }
.wp-block-button.is-style-mb-outline .wp-block-button__link:hover { background: var(--global-palette3); color: #fff; }
.mb-checklist { list-style: none; padding: 0; display: grid; gap: .55rem; }
.mb-checklist li { position: relative; padding-inline-start: 1.9rem; }
.mb-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--global-palette1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ==========================================================================
   Forms (Fluent Forms) — brand look, RTL-safe
   ========================================================================== */
.mb-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mb-form-wrap { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 24px; background: #fff; box-shadow: 0 0 34px rgba(0,0,0,.06); border: 1px solid #EEF1F6; }
.mb-form-wrap .ff-el-input--label label { font-weight: 700; color: var(--global-palette3); font-size: .9375rem; }
.mb-form-wrap .ff-el-form-control { border-radius: 6px !important; border-color: #D5DCE7 !important; min-height: 46px; font-size: 1rem; }
.mb-form-wrap .ff-el-form-control:focus { border-color: var(--global-palette1) !important; box-shadow: 0 0 0 3px rgba(47,143,207,.2) !important; }
.mb-form-wrap .ff-el-help-message { color: var(--global-palette5); font-size: .8125rem; }
.mb-form-wrap .ff-btn-submit, .mb-form-wrap .mb-ff-submit { min-height: 52px; padding: .75em 1.8em !important; border-radius: 6px !important; background: var(--global-palette1) !important; border: 0 !important; color: #fff !important; font-family: var(--global-body-font-family); font-size: 1.1875rem !important; font-weight: 700 !important; }
.mb-form-wrap .ff-btn-submit:hover { background: var(--global-palette3) !important; }
.mb-form-wrap .ff_list_inline .ff-el-form-check { display: inline-flex; margin-inline-end: 1.25rem; }
.mb-form-wrap .ff-el-form-check-label { font-weight: 600; }
.mb-form-wrap .ff-el-tc label { font-size: .875rem; line-height: 1.5; }
.mb-form-wrap .ff-message-success { padding: 1.25rem 1.5rem; border-radius: 12px; border: 0; background: #E9F6EF; color: #14532D; font-weight: 600; }
.mb-form-wrap .error.text-danger { font-size: .8125rem; }
.mb-form-note { margin: 0; padding: .9rem 1rem; border-radius: 10px; background: var(--global-palette8); font-size: .875rem; color: var(--global-palette4); }
html[dir="rtl"] .mb-form-wrap .ff-el-form-control, html[dir="rtl"] .mb-form-wrap .ff-el-input--label { text-align: right; }
html[dir="rtl"] .mb-form-wrap input[type="email"], html[dir="rtl"] .mb-form-wrap input[type="tel"] { direction: ltr; text-align: right; }

/* Quote lines editor */
.mb-quote-lines { margin-bottom: 1.25rem; }
.mb-quote-lines__label { margin: 0 0 .5rem; font-weight: 700; color: var(--global-palette3); }
.mb-quote-lines__empty { margin: 0 0 .75rem; padding: .9rem 1rem; border: 1px dashed #C9D2E0; border-radius: 10px; color: var(--global-palette5); font-size: .9rem; }
.mb-quote-lines__rows { display: grid; gap: .5rem; margin-bottom: .75rem; }
.mb-quote-line { display: grid; grid-template-columns: minmax(140px, 1fr) 110px minmax(0, 2fr) 40px; gap: .6rem; align-items: end; padding: .75rem; border-radius: 10px; background: var(--global-palette8); }
.mb-quote-line label { display: grid; gap: .25rem; margin: 0; font-size: .75rem; font-weight: 700; color: var(--global-palette5); }
.mb-quote-line input { height: 40px; padding-inline: .6rem; border: 1px solid #D5DCE7; border-radius: 6px; font-size: .95rem; background: #fff; }
.mb-quote-line__name { align-self: center; font-size: .875rem; color: var(--global-palette4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-quote-line__remove { height: 40px; border: 0; border-radius: 6px; background: #fff; color: #B3261E; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.mb-quote-line__remove:hover { background: #FDECEA; }
@media (max-width: 599px) { .mb-quote-line { grid-template-columns: 1fr 90px 40px; } .mb-quote-line__name { grid-column: 1 / -1; grid-row: 2; } }

/* Inner page building blocks */
.mb-cols { gap: clamp(1.5rem, 4vw, 3rem); margin-block: 0 clamp(2.5rem, 5vw, 4rem); }
.mb-aside { position: sticky; top: 110px; padding: 1.5rem; border-radius: 24px; background: var(--global-palette8); }
.mb-aside h3 { margin-top: 0; font-size: 1.1rem; }
.mb-narrow { max-width: 860px; margin-inline: auto; }
.mb-cards > .wp-block-group__inner-container, .mb-cards:not(:has(> .wp-block-group__inner-container)) { display: grid; gap: 1.5rem; }
.mb-cards--2 > .wp-block-group__inner-container, .mb-cards--2:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, 1fr); }
.mb-cards--3 > .wp-block-group__inner-container, .mb-cards--3:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(3, 1fr); }
.mb-cards--4 > .wp-block-group__inner-container, .mb-cards--4:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(4, 1fr); }
.mb-cards .wp-block-group__inner-container > *, .mb-cards > * { margin: 0 !important; }
@media (max-width: 1023px) { .mb-cards--3 > .wp-block-group__inner-container, .mb-cards--4 > .wp-block-group__inner-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .mb-cards > .wp-block-group__inner-container { grid-template-columns: 1fr !important; } }
.wp-block-group.mb-card { padding: 1.5rem; border-radius: 16px; background: #fff; box-shadow: 0 0 34px rgba(0,0,0,.05); border: 1px solid #EEF1F6; }
.wp-block-group.mb-card h3 { margin: .5rem 0; font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--global-palette3); }
.wp-block-group.mb-card p { margin: 0; font-size: .9375rem; }
.mb-icon-wrap { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--global-palette8); color: var(--global-palette3); }
.mb-icon-wrap svg { width: 36px; height: 36px; }
.mb-contact-card ul { display: grid; gap: .9rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.mb-contact-card li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.mb-contact-card li .mb-icon { flex: none; width: 22px; height: 22px; margin-top: .1rem; color: var(--global-palette1); }
.mb-contact-card strong { display: block; color: var(--global-palette3); }
.mb-contact-card a { color: var(--global-palette4); }
.mb-contact-card .mb-btn .mb-icon { color: inherit; }

/* Presence map */
.mb-map { margin: 0; }
.mb-map__svg { display: block; width: 100%; height: auto; max-height: 560px; border-radius: 24px; background: linear-gradient(180deg, #EEF5FB 0%, #F6F9FC 100%); }
.mb-map__svg path { fill: #DCE3EC; stroke: #fff; stroke-width: .35; transition: fill .2s; }
.mb-map__svg path.is-active { fill: var(--global-palette1); }
.mb-map__svg path.is-active:hover { fill: var(--global-palette3); }
.mb-map__svg path.is-origin { fill: var(--global-palette3); }
.mb-map__pin circle { fill: var(--global-palette10, #5BBDE8); stroke: #fff; stroke-width: .6; }
.mb-map__pin .mb-map__pulse { fill: rgba(91,189,232,.35); stroke: none; animation: mb-pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mb-pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mb-map__pin .mb-map__pulse { animation: none; } }
.mb-map__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .75rem; font-size: .8125rem; color: var(--global-palette5); }
.mb-map__key::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-inline-end: .4em; border-radius: 3px; vertical-align: -.05em; background: var(--global-palette1); }
.mb-map__key--origin::before { background: var(--global-palette3); }

/* Item cards (events, news, certifications, partners) */
.mb-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.mb-item-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 34px rgba(0,0,0,.05); border: 1px solid #EEF1F6; }
.mb-item-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--global-palette8); }
.mb-item-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mb-item-grid--certs .mb-item-card__media { aspect-ratio: auto; padding: 1rem; display: grid; place-items: center; }
.mb-item-grid--certs .mb-item-card__media img { width: auto; max-height: 90px; object-fit: contain; }
.mb-item-card__body { display: grid; gap: .45rem; padding: 1.2rem 1.3rem 1.4rem; }
.mb-item-card__body > * { margin: 0; }
.mb-item-card__kicker { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 800; letter-spacing: .04em; color: var(--global-palette1); }
.mb-item-card__kicker .mb-icon { width: 16px; height: 16px; }
.mb-item-card__title { font-size: 1.125rem; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.mb-item-card__title a { color: var(--global-palette3); text-decoration: none; }
.mb-item-card__title a:hover { color: var(--global-palette1); }
.mb-item-card__meta { font-size: .875rem; color: var(--global-palette5); }
.mb-item-card__text { font-size: .9375rem; }
.mb-subhead { margin: 1.5rem 0 1rem; font-size: 1rem; }
.mb-empty { padding: 1.25rem; border-radius: 12px; background: var(--global-palette8); color: var(--global-palette5); }
.mb-flow { max-width: calc(1240px + 4rem); margin: 0 auto 2rem !important; padding: 1rem 1.5rem; border-radius: 999px; background: var(--global-palette8); text-align: center !important; font-weight: 800; color: var(--global-palette3); }
.mb-legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.mb-legal mark { background: #FFF4D6; color: #7A4B00; padding: 0 .25em; border-radius: 3px; }

/* Pages use Kadence's full-width layout (like the template): Kadence rows are alignfull and handle
   their own width; every other block (our sections, shortcodes, forms) gets the site container. */
body.content-width-fullwidth .entry-content > :not(.alignfull):not(.alignwide):not(.kb-row-layout-wrap):not(.mb-split) {
	box-sizing: border-box; max-width: calc(1240px + 2 * var(--mb-gutter)); margin-inline: auto; padding-inline: var(--mb-gutter);
}
body.content-width-fullwidth .entry-content > .mb-pagehero, body.content-width-fullwidth .entry-content > .mb-band {
	max-width: 1240px; width: calc(100% - 2 * var(--mb-gutter)); padding: clamp(2rem, 5vw, 3.5rem); border-radius: 32px;
}
body.content-width-fullwidth .entry-content > .mb-pagehero { margin-top: 1.25rem; margin-bottom: 0; }
.kb-row-layout-wrap + .mb-block, .kb-row-layout-wrap + .wp-block-group.mb-block { padding-top: clamp(2.5rem, 5vw, 4rem); }
.mb-pagehero + .kb-row-layout-wrap { margin-top: clamp(1rem, 3vw, 2rem); }
.mb-pagehero__text, .mb-pagehero p { max-width: 820px; }
.mb-event__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 899px) { .mb-event__content { grid-template-columns: 1fr; } }
.mb-event__image { margin: 0; overflow: hidden; border-radius: 24px; }
.mb-event__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.mb-event__gallery figure { margin: 0; overflow: hidden; border-radius: 16px; }
.mb-pagehero .mb-overline .mb-icon { width: 16px; height: 16px; vertical-align: -3px; }
/* Never break words inside headings (long French/uppercase words on phones). */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* Mobile panel: full-width menu, items aligned to the start (LTR left / RTL right). */
.mb-nav.mb-nav--mobile { display: block; }
.mb-nav--mobile .mb-menu { width: 100%; }



/* ==========================================================================
   Home split hero — Marine & Yachting | Oil & Gas · Offshore (equal halves)
   One H1 on top; each half: label, big title, one button — nothing else.
   ========================================================================== */
.mb-split { position: relative; display: flex; flex-direction: column; min-height: clamp(540px, calc(100vh - 126px), 780px); overflow: hidden; border-radius: 0 0 40px 40px; background: var(--mb-abyss); color: #fff; isolation: isolate; }
body.content-width-fullwidth .entry-content > section.mb-split { max-width: none; width: auto; padding-inline: 0; margin: 0; }
.mb-split__panels { position: absolute; inset: 0; z-index: 0; display: flex; }
.mb-split__panel { position: relative; flex: 1 1 0; overflow: hidden; text-decoration: none; transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1); }
.entry-content .mb-split a.mb-split__panel, .entry-content .mb-split a.mb-split__panel:hover { color: #fff; text-decoration: none; }
.mb-split__panel + .mb-split__panel::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 2; width: 1px; background: rgba(255, 255, 255, .35); }
.mb-split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.mb-split__shade { position: absolute; inset: 0; background:
	linear-gradient(180deg, rgba(30, 33, 80, .82) 0%, rgba(30, 33, 80, .25) 30%, rgba(30, 33, 80, 0) 48%, rgba(30, 33, 80, .2) 62%, rgba(30, 33, 80, .88) 100%); }

.mb-split__content { position: absolute; inset-inline: clamp(1.5rem, 4.5vw, 4rem); bottom: clamp(2rem, 5vw, 3.75rem); display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.mb-split__kicker {
	display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
	padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
	background: rgba(30, 33, 80, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font-family: var(--mb-font-body); font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	color: var(--mb-white); text-shadow: none;
}
.mb-split__num { opacity: .7; letter-spacing: .08em; }
.mb-split__title { font-family: var(--mb-font-heading); font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.mb-split__cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: .35rem; padding: .8rem 1.3rem; border-radius: 6px; background: #fff; color: var(--mb-navy); font-weight: 800; font-size: 1rem; transition: background-color .2s, color .2s, gap .2s; }
.mb-split__cta .mb-icon { width: 18px; height: 18px; }
html[dir="rtl"] .mb-split__cta .mb-icon { transform: scaleX(-1); }
.mb-split__panel:hover .mb-split__cta, .mb-split__panel:focus-visible .mb-split__cta { background: var(--mb-sky); color: var(--mb-abyss); gap: .8rem; }
.mb-split__panel:focus-visible { outline: 3px solid var(--mb-sky); outline-offset: -6px; }
@media (hover: hover) and (min-width: 768px) {
	.mb-split__panels:hover .mb-split__panel { flex-grow: .85; }
	.mb-split__panels .mb-split__panel:hover { flex-grow: 1.15; }
	.mb-split__panel:hover .mb-split__img { transform: scale(1.04); }
}

.mb-split__intro { position: relative; z-index: 2; width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4rem) var(--mb-gutter) 0; text-align: center; pointer-events: none; }
.mb-split__h1 { margin: 0 !important; color: #fff !important; font-size: clamp(1.5rem, 2.3vw, 2.25rem) !important; line-height: 1.2 !important; letter-spacing: .01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.mb-split__intro::after { content: ""; display: block; width: 56px; height: 3px; margin: 1.1rem auto 0; border-radius: 3px; background: var(--mb-sky); }
html:lang(ar) .mb-split__kicker { letter-spacing: 0; text-transform: none; font-size: 1rem; }
html:lang(ar) .mb-split__title { letter-spacing: 0; line-height: 1.25; }


@media (max-width: 767px) {
	/* Phone: compact title, then the two choices side by side as photo tiles — both visible on the first screen. */
	.mb-split { min-height: 0; padding-bottom: 16px; border-radius: 0 0 24px 24px; }
	.mb-split__intro { padding: 1.6rem 20px 1.25rem; text-align: start; }
	.mb-split__h1 { font-size: 1.4rem !important; line-height: 1.28 !important; text-transform: none !important; letter-spacing: 0 !important; text-shadow: none; }
	.mb-split__intro::after { width: 40px; margin: .85rem 0 0; margin-inline-start: 0; }
	.mb-split__panels { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-inline: 16px; }
	.mb-split__panel { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; aspect-ratio: 3 / 4; max-height: 300px; width: 100%; border-radius: 18px; }
	.mb-split__panel + .mb-split__panel::before { display: none; }
	.mb-split__shade { background: linear-gradient(180deg, rgba(30, 33, 80, 0) 30%, rgba(30, 33, 80, .92) 100%); }
	.mb-split__content { position: relative; inset: auto; gap: .3rem; padding: 0 12px 12px; }
	.mb-split__kicker { display: none; } /* the tile title says it; tiny label was unreadable over bright skies */
	.mb-split__title { font-size: 1.125rem; line-height: 1.2; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
	/* Button becomes a round arrow; the whole tile is the link. */
	.mb-split__cta { width: 38px; height: 38px; margin-top: .45rem; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; }
	.mb-split__cta .mb-icon { width: 18px; height: 18px; }
}
@media (max-width: 359px) { .mb-split__title { font-size: 1rem; } .mb-split__panel { aspect-ratio: 2 / 3; } }

/* Sticky header: the whole header sticks, offset by the top strip so only the white bar stays visible.
   (A sticky bar *inside* the header could only stick while the header itself was on screen.)
   Kadence sets #masthead { position: relative } — ID-level override needed. */
:root { --mb-topbar-h: 40px; }
.mb-topbar__inner { height: var(--mb-topbar-h); min-height: 0; overflow: hidden; }
#masthead.mb-header { position: sticky; top: calc(-1 * var(--mb-topbar-h)); z-index: 50; }
.admin-bar #masthead.mb-header { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--mb-topbar-h)); }
@media (max-width: 600px) { .admin-bar #masthead.mb-header { top: calc(-1 * var(--mb-topbar-h)); } } /* admin bar is not fixed on small phones */
.mb-mainbar, .admin-bar .mb-mainbar { position: relative; top: auto; }

/* Template image-card grid (home "Nos produits", Applications sectors): one card per row on phones,
   landscape cards so photos and titles breathe (2 narrow tall cards per row looked cramped). */
@media (max-width: 767px) {
	.kb-row-layout-id53_842b1b-08 > .kt-row-column-wrap { grid-template-columns: 1fr !important; row-gap: 14px !important; }
	.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column > .kt-inside-inner-col { min-height: 210px !important; height: auto !important; }
	.kb-row-layout-id53_842b1b-08 .wp-block-kadence-advancedheading { font-size: 1.35rem !important; line-height: 1.3 !important; }
}

/* ---------- Rounded corners that Kadence doesn't clip ----------
   1. CTA band with a parallax photo: jarallax paints the photo in a position:fixed layer, which
      escapes border-radius/overflow — clip-path does clip it.
   2. Photo columns ("Qui sommes-nous" foundry photo, Savoir-faire engineer photo): the background
      image sits on the column while Kadence rounds only the inner wrapper (and only on one side,
      because the template expected the photo to bleed off-screen). Round the whole photo. */
.kb-row-layout-id53_b79d3f-6d { clip-path: inset(0 round 40px); }
.kadence-column53_abd9d3-be, .kadence-column53_a703ea-cc { border-radius: 32px; overflow: hidden; clip-path: inset(0 round 32px); }
.kadence-column53_abd9d3-be > .kt-inside-inner-col, .kadence-column53_a703ea-cc > .kt-inside-inner-col { border-radius: 32px; }
@media (max-width: 767px) {
	.kb-row-layout-id53_b79d3f-6d { clip-path: inset(0 round 24px); }
	.kadence-column53_abd9d3-be, .kadence-column53_a703ea-cc { border-radius: 24px; clip-path: inset(0 round 24px); }
	.kadence-column53_abd9d3-be > .kt-inside-inner-col, .kadence-column53_a703ea-cc > .kt-inside-inner-col { border-radius: 24px; }
}

/* ==========================================================================
   Nos références — logo marquee (right → left), greyscale → colour on hover
   ========================================================================== */
body.content-width-fullwidth .entry-content > .mb-refs { max-width: none; }
.entry-content .mb-refs { margin: 0; padding: clamp(4rem, 9vw, 6.5rem) 0; background: var(--mb-cloud); overflow: hidden; }
.mb-refs__inner { max-width: var(--mb-container); margin: 0 auto; padding-inline: var(--mb-gutter); }
.mb-refs__head { max-width: 720px; margin: 0 auto clamp(2rem, 4.5vw, 3rem); text-align: center; }
.entry-content .mb-refs__head p { text-align: center; }
.entry-content .mb-refs__head .mb-overline { margin-bottom: .5rem; }
.entry-content .mb-refs__title { margin: 0 0 .75rem; font-size: clamp(1.75rem, 3.2vw, 2.4em); line-height: 1.25; font-weight: 600; color: var(--mb-abyss); }
.mb-refs__lead { margin: 0 auto; max-width: 60ch; color: var(--mb-slate); font-size: 1.0625rem; line-height: 1.65; }

.mb-refs__marquee {
	--speed: 45s; --gap: clamp(2.5rem, 5vw, 4.5rem);
	position: relative; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mb-refs__track { display: flex; width: max-content; animation: mb-refs-scroll var(--speed) linear infinite; }
.mb-refs__marquee:hover .mb-refs__track,
.mb-refs__marquee:focus-within .mb-refs__track { animation-play-state: paused; }
.entry-content .mb-refs__list { display: flex; align-items: center; gap: var(--gap); margin: 0; padding: 0 var(--gap) 0 0; list-style: none; }
.mb-refs__item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 110px; padding: .5rem 0; }
.mb-refs__item img {
	display: block; width: auto; height: auto; max-height: 84px; max-width: 200px; object-fit: contain;
	filter: grayscale(1) contrast(1.05); opacity: .6;
	transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.mb-refs__item:hover img { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes mb-refs-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 767px) {
	.mb-refs__marquee { --speed: 32s; --gap: 2.25rem; }
	.mb-refs__item { height: 80px; }
	.mb-refs__item img { max-height: 60px; max-width: 140px; }
}
/* Reduced motion: no scrolling — one centred, wrapped row, copy hidden. */
@media (prefers-reduced-motion: reduce) {
	.mb-refs__marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--mb-gutter); }
	.mb-refs__track { animation: none; width: auto; justify-content: center; }
	.entry-content .mb-refs__list { flex-wrap: wrap; justify-content: center; padding: 0; row-gap: 1rem; }
	.mb-refs__list[aria-hidden="true"] { display: none; }
	.mb-refs__item img { transition: none; }
}

/* ==========================================================================
   Home "Deux univers" card (rows 53_97c7a6-8c products | 53_757f27-4d applications):
   Kadence stores physical left/right padding & radii — mirror them in Arabic (desktop layout only).
   ========================================================================== */
@media (min-width: 1025px) {
	html[dir="rtl"] .kadence-column53_97c7a6-8c > .kt-inside-inner-col { padding-right: var(--global-kb-spacing-lg, 3rem); padding-left: 0; }
	html[dir="rtl"] .kadence-column53_97c7a6-8c > .kt-inside-inner-col,
	html[dir="rtl"] .kadence-column53_97c7a6-8c > .kt-inside-inner-col:before { border-radius: 0 32px 32px 0; }
	html[dir="rtl"] .kadence-column53_757f27-4d > .kt-inside-inner-col { padding-right: var(--global-kb-spacing-xl, 4rem); padding-left: var(--global-kb-spacing-lg, 3rem); }
	html[dir="rtl"] .kadence-column53_757f27-4d > .kt-inside-inner-col,
	html[dir="rtl"] .kadence-column53_757f27-4d > .kt-inside-inner-col:before { border-radius: 32px 0 0 32px; }
}

/* ==========================================================================
   Image hover — one subtle, consistent touch (slow zoom inside a fixed frame)
   ========================================================================== */
.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column { overflow: hidden; }
.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column > .kt-inside-inner-col,
.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column > .kt-inside-inner-col > *,
.mb-item-card__media img,
.wp-block-kadence-advancedgallery .kb-gal-image-radius img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column > .kt-inside-inner-col::before { transition: opacity .4s ease; }
.mb-item-card { transition: transform .25s ease, box-shadow .25s ease; }
.wp-block-kadence-advancedgallery .kb-gal-image-radius { overflow: hidden; border-radius: 16px; } /* matches the template gallery radius so zoomed photos keep their corners */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	/* Home photo tiles: the photo zooms, the label stays the same size. */
	.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column:hover > .kt-inside-inner-col { transform: scale(1.06); }
	.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column:hover > .kt-inside-inner-col > * { transform: scale(calc(1 / 1.06)); }
	.kb-row-layout-id53_842b1b-08 .wp-block-kadence-column:hover > .kt-inside-inner-col::before { opacity: .85 !important; }
	/* News, certifications, partners cards. */
	.mb-item-card:hover { transform: translateY(-3px); box-shadow: var(--mb-shadow-hover); }
	.mb-item-card:hover .mb-item-card__media img { transform: scale(1.04); }
	.mb-item-grid--certs .mb-item-card:hover .mb-item-card__media img { transform: scale(1.06); }
	/* Galleries. */
	.wp-block-kadence-advancedgallery .kb-gal-image-radius:hover img { transform: scale(1.05); }
}
