:root {
  --mg-navy: #07162e;
  --mg-navy-soft: #102747;
  --mg-gold: var(--background-color, #e6a82f);
  --mg-gold-dark: #d49620;
  --mg-ivory: #faf7f0;
  --mg-white: #ffffff;
  --mg-text: #162033;
  --mg-muted: #667085;
  --mg-line: #e8e5df;
  --mg-radius: 18px;
  --mg-radius-lg: 26px;
  --mg-shadow: 0 18px 55px rgba(7, 22, 46, .10);
  --mg-shadow-soft: 0 8px 26px rgba(7, 22, 46, .07);
}

/* Base */
html { scroll-behavior: smooth; }
body {
  color: var(--mg-text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.sppb-addon-title {
  color: var(--mg-navy);
  font-family: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.6rem, 5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
img { max-width: 100%; height: auto; }
.container { max-width: 1440px; }
.full-width { padding-inline: clamp(20px, 5vw, 80px) !important; }

a, button, .btn, .sppb-btn {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease,
    box-shadow .22s ease, transform .22s ease;
}

/* Header and navigation — structure remains editable in Helix */
#sp-header {
  min-height: 92px;
  box-shadow: 0 8px 30px rgba(7, 22, 46, .07);
  backdrop-filter: blur(12px);
}

#sp-header > .container,
#sp-header > .container-fluid {
  max-width: 100%;
  padding-inline: clamp(20px, 5vw, 80px);
}

#sp-header .logo {
  display: flex;
  align-items: center;
}

#sp-header .logo-image,
#sp-header .logo-image-phone {
  width: auto;
  max-width: min(100%, 300px);
  object-fit: contain;
}

.sp-megamenu-parent {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 24px);
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  position: relative;
  padding-inline: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.sp-megamenu-parent > li > a::after,
.sp-megamenu-parent > li > span::after {
  position: absolute;
  right: 10px;
  bottom: 20px;
  left: 10px;
  height: 3px;
  background: var(--mg-gold);
  border-radius: 10px;
  content: "";
  transform: scaleX(0);
  transition: transform .22s ease;
}

.sp-megamenu-parent > li.active > a::after,
.sp-megamenu-parent > li:hover > a::after { transform: scaleX(1); }

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  padding: 14px;
  border: 1px solid var(--mg-line);
  border-radius: 14px;
  box-shadow: var(--mg-shadow);
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px !important;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  background: var(--mg-ivory);
}

.offcanvas-menu { background: var(--mg-white); }
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span {
  padding: 12px 10px;
  color: var(--mg-navy);
  border-bottom: 1px solid var(--mg-line);
  font-size: 15px;
  font-weight: 650;
}

.burger-icon > span { background-color: var(--mg-navy); }

/* Buttons */
.btn,
.sppb-btn,
.hikabtn,
button[type="submit"],
input[type="submit"],
.mg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 13px 25px;
  border: 1px solid var(--mg-navy);
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover,
.sppb-btn:hover,
.hikabtn:hover,
.mg-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--mg-shadow-soft);
}

.btn-primary,
.sppb-btn-primary,
.hikabtn-primary,
.hikashop_cart_input_button,
.mg-button-primary {
  color: var(--mg-navy) !important;
  background: var(--mg-gold) !important;
  border-color: var(--mg-gold) !important;
}

.mg-button-secondary {
  color: var(--mg-navy);
  background: transparent;
}

/* Helix rows created in Layout Builder */
.mg-layout-hero { overflow: hidden; }
.mg-layout-hero > .container,
.mg-layout-hero > .container-fluid { max-width: none; padding: 0; }
.mg-layout-trust { padding: 0; background: var(--mg-white); }
.mg-layout-categories { padding-block: clamp(70px, 8vw, 120px); }
.mg-layout-title .sp-page-title { margin: 0; }
.mg-layout-main { padding-block: clamp(45px, 6vw, 90px); }
.mg-layout-devis { padding-block: clamp(30px, 5vw, 70px); }
.mg-layout-bottom { padding-block: clamp(55px, 7vw, 95px); background: var(--mg-ivory); }
.mg-layout-footer { padding-block: 55px; }

/* Custom HTML module: hero */
.mg-hero {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: min(720px, calc(100vh - 100px));
  overflow: hidden;
  background: var(--mg-ivory);
}

.mg-hero-copy {
  display: flex;
  align-items: center;
  padding: clamp(55px, 7vw, 110px) clamp(35px, 5vw, 90px);
}

.mg-hero-copy-inner {
  width: min(100%, 680px);
  margin-left: auto;
}

.mg-eyebrow {
  margin: 0 0 18px;
  color: var(--mg-gold-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mg-hero h1 {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 5.7vw, 6.3rem);
  line-height: .92;
}

.mg-hero-lead {
  max-width: 610px;
  margin-bottom: 34px;
  color: #414957;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.5;
}

.mg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.mg-hero-image { min-height: 520px; overflow: hidden; }
.mg-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.mg-hero:hover .mg-hero-image img { transform: scale(1.025); }

/* Modern full-width hero slide */
.mg-modern-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 78vh, 820px);
  overflow: hidden;
  color: var(--mg-white);
  background:
    linear-gradient(90deg, rgba(4, 15, 34, .98) 0%, rgba(4, 15, 34, .88) 31%, rgba(4, 15, 34, .34) 62%, rgba(4, 15, 34, .06) 100%),
    url("../images/hero-slide-modern-v1.png") center / cover no-repeat;
}
.mg-modern-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(4, 15, 34, .42));
  content: "";
  pointer-events: none;
}
.mg-modern-slide-content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 90px 0 110px;
}
.mg-modern-slide-copy {
  width: min(100%, 720px);
}
.mg-modern-slide .mg-eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 9px 14px;
  color: var(--mg-gold);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.mg-modern-slide h1 {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--mg-white);
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  line-height: .91;
  text-wrap: balance;
}
.mg-modern-slide-lead {
  max-width: 620px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  line-height: 1.55;
}
.mg-modern-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.mg-modern-slide .mg-button-primary {
  color: var(--mg-navy);
  background: var(--mg-gold);
  border-color: var(--mg-gold);
}
.mg-modern-slide .mg-button-primary:hover {
  color: var(--mg-navy);
  background: var(--mg-white);
  border-color: var(--mg-white);
}
.mg-modern-slide .mg-button-secondary {
  color: var(--mg-white);
  border-color: rgba(255, 255, 255, .68);
}
.mg-modern-slide .mg-button-secondary:hover {
  color: var(--mg-navy);
  background: var(--mg-white);
  border-color: var(--mg-white);
}

/* Trust module */
.mg-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(100% - 40px, 1120px);
  margin: -42px auto 0;
  padding: 24px;
  position: relative;
  z-index: 3;
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow);
}

.mg-trust-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 13px;
  padding: 8px 18px;
}

.mg-trust-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--mg-navy);
  background: color-mix(in srgb, var(--mg-gold) 22%, white);
  border-radius: 50%;
  font-size: 1.2rem;
}

.mg-trust-item strong { color: var(--mg-navy); font-size: 1rem; }
.mg-trust-item span:last-child { color: var(--mg-muted); font-size: .85rem; }

/* Category module */
.mg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.mg-section-heading h2 { margin: 0; }
.mg-section-heading a { font-weight: 750; text-decoration: none; }

.mg-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mg-category-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: var(--mg-white) !important;
  background: var(--mg-navy);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-soft);
}

.mg-category-card::after {
  position: absolute;
  inset: 32% 0 0;
  background: linear-gradient(transparent, rgba(7,22,46,.92));
  content: "";
}

.mg-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.mg-category-card-content {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  left: 30px;
}

.mg-category-card h3 { margin: 0 0 6px; color: var(--mg-white); font-size: 2.25rem; }
.mg-category-card p { margin: 0; color: rgba(255,255,255,.78); }
.mg-category-card:hover img { transform: scale(1.035); }

/* Call to action module */
.mg-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: clamp(35px, 5vw, 65px);
  color: var(--mg-white);
  background: var(--mg-navy);
  border-radius: var(--mg-radius-lg);
}
.mg-cta h2 { max-width: 880px; margin: 0; color: var(--mg-white); }
.mg-cta .mg-eyebrow { color: var(--mg-gold); }

/* Callback module */
.sp-module.placerappel {
  margin: 26px 0;
}
.sp-module.placerappel p {
  margin: 0;
}
.sp-module.placerappel a.jcepopup {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  color: var(--mg-white) !important;
  background: var(--mg-navy);
  border: 1px solid var(--mg-navy);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 22, 46, .18);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.sp-module.placerappel a.jcepopup:has(button) {
  min-height: 0;
  padding: 0;
}
.sp-module.placerappel a.jcepopup > button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0;
  padding: 13px 24px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.sp-module.placerappel a.jcepopup:hover,
.sp-module.placerappel a.jcepopup:focus {
  color: var(--mg-navy) !important;
  background: var(--mg-gold);
  border-color: var(--mg-gold);
  box-shadow: 0 13px 30px rgba(212, 150, 32, .28);
  outline: none;
  transform: translateY(-2px);
}
.sp-module.placerappel a.jcepopup:hover > button,
.sp-module.placerappel a.jcepopup:focus > button {
  color: inherit;
  background: transparent;
  border: 0;
}

/* Joomla content */
.sp-page-title {
  padding-block: clamp(44px, 6vw, 82px);
  background: var(--mg-navy);
}
.sp-page-title .sp-page-title-heading,
.sp-page-title .sp-page-title-sub-heading { color: var(--mg-white); }
.breadcrumb { background: transparent; }
.article-details .article-header h1,
.article-details .article-header h2 { margin-bottom: 28px; }
.article-body { font-size: 1.04rem; line-height: 1.8; }
.article-body img,
.article-intro-image img,
.article-full-image img { border-radius: var(--mg-radius); }
.article-list .article {
  padding: 26px;
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-soft);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea,
.form-control {
  min-height: 50px;
  padding: 12px 14px;
  color: var(--mg-text);
  background: var(--mg-white);
  border: 1px solid #d6d9df;
  border-radius: 9px;
  box-shadow: none;
}
textarea, textarea.form-control { min-height: 145px; }
input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: var(--mg-gold);
  box-shadow: 0 0 0 4px rgba(230,168,47,.18);
}

/* HikaShop catalogue grids.
   Keep these rules scoped to HikaShop catalogue pages: applying a grid to a
   product module breaks the widths calculated by HikaShop's Swiper carousel. */
body.com-hikashop.layout-listing .hikashop_products,
body.com-hikashop.layout-listing .hikashop_categories,
body.com-hikashop.layout-listing .hikashop_products_listing,
body.com-hikashop.layout-listing .hikashop_category_listing {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0 !important;
}

.hikashop_products > [class*="hikashop_product"],
.hikashop_categories > [class*="hikashop_category"],
.hikashop_product,
.hikashop_category {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.hikashop_subcontainer,
.hikashop_product_list_item,
.hikashop_category_list_item {
  height: 100%;
  overflow: hidden;
  background: var(--mg-white) !important;
  border: 1px solid var(--mg-line) !important;
  border-radius: var(--mg-radius) !important;
  box-shadow: var(--mg-shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hikashop_subcontainer:hover,
.hikashop_product_list_item:hover,
.hikashop_category_list_item:hover {
  transform: translateY(-5px);
  box-shadow: var(--mg-shadow);
}

.hikashop_product_image,
.hikashop_category_image { margin: 0 !important; overflow: hidden; background: var(--mg-ivory); }
.hikashop_product_image img,
.hikashop_category_image img,
.hikashop_product_listing_image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  object-fit: cover;
  transition: transform .35s ease;
}
.hikashop_subcontainer:hover .hikashop_product_image img,
.hikashop_subcontainer:hover .hikashop_category_image img { transform: scale(1.025); }

.hikashop_product_name,
.hikashop_category_name {
  padding: 22px 22px 8px;
  color: var(--mg-navy);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}
.hikashop_product_name a,
.hikashop_category_name a { color: inherit; text-decoration: none; }
.hikashop_product_price_full,
.hikashop_product_price_per_unit,
.hikashop_product_stock,
.hikashop_product_code_list { display: block; padding-inline: 22px; }
.hikashop_product_price,
.hikashop_product_price_full { color: var(--mg-navy) !important; font-size: 1.18rem !important; font-weight: 800 !important; }
.hikashop_product_stock { padding-bottom: 22px; color: #237a57; font-size: .84rem; }
.hikashop_product_quantity_div { padding: 0 22px 22px; }
.hikashop_product_quantity_div .hikabtn { width: 100%; }
.hikashop_products_pagination { grid-column: 1 / -1; }

/* HikaShop product page */
.hikashop_product_page {
  display: block;
}
.hikashop_product_page .hikashop_product_left_part,
.hikashop_product_page .hikashop_product_right_part { width: auto !important; float: none !important; }
.hikashop_product_page .hikashop_product_image_main {
  overflow: hidden;
  background: var(--mg-ivory);
  border-radius: var(--mg-radius);
}
.hikashop_product_page .hikashop_product_main_image {
  width: 100% !important;
  height: auto !important;
  max-height: 680px;
  object-fit: contain;
}
.hikashop_product_page h1,
.hikashop_product_page .hikashop_product_name_main {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.12;
}
.hikashop_product_page .hikashop_product_price_full { margin: 20px 0; padding: 0; font-size: 1.55rem !important; }
.hikashop_product_page .hikashop_product_stock,
.hikashop_product_page .hikashop_product_quantity_div { padding-inline: 0; }
.hikashop_product_bottom_part,
.hikashop_product_description_main {
  clear: both;
  width: 100%;
  margin-top: 38px;
}
.hikashop_product_bottom_part h2,
.hikashop_product_description_main h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.15;
}

/* Cart and checkout */
.hikashop_checkout_step,
.hikashop_checkout_block {
  margin-bottom: 26px;
  padding: 26px;
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius);
  box-shadow: var(--mg-shadow-soft);
}
.hikashop_cart_product_name a { color: var(--mg-navy); font-weight: 750; text-decoration: none; }
.hikashop_cart_product_image img { width: 86px; border-radius: 10px; }
.hikashop_checkout_cart_final_total { color: var(--mg-navy); font-size: 1.25rem; font-weight: 800; }

/* Widgetkit category bubbles
   The home-page widget requests five columns on large screens. Four columns
   keep the circular visuals and their labels comfortably readable. */
@media (min-width: 1200px) {
  .article-details .uk-scope .uk-grid.uk-child-width-1-5\@l > *,
  .article-details .uk-scope .uk-grid.uk-child-width-1-5\@xl > * {
    width: 25% !important;
  }
}

/* Footer */
#sp-bottom { padding-block: 60px; }
#sp-bottom .sp-module-title,
#sp-bottom h3 { color: var(--mg-white); font-size: 1rem; letter-spacing: 0; }
#sp-bottom a { text-decoration: none; }
#sp-footer { border-top: 1px solid rgba(255,255,255,.12); }
#sp-footer .container-inner { padding: 22px 0; border-top: 0; }
.mg-template-credit {
  padding: 8px 15px 14px;
  color: #818895;
  background: var(--mg-navy);
  font-size: 11px;
  text-align: center;
}
.mg-template-credit a { color: #aeb5c0; }
.sp-scroll-up {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--mg-navy);
  background: var(--mg-gold);
  border-radius: 50%;
}

@media (max-width: 1100px) {
  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span { padding-inline: 6px; font-size: 14px; }
  body.com-hikashop.layout-listing .hikashop_products,
  body.com-hikashop.layout-listing .hikashop_categories,
  body.com-hikashop.layout-listing .hikashop_products_listing,
  body.com-hikashop.layout-listing .hikashop_category_listing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  #sp-header { min-height: 82px; }
  .mg-hero { grid-template-columns: 1fr; }
  .mg-hero-copy { padding: 60px 25px; }
  .mg-hero-copy-inner { width: min(100%, 760px); margin: auto; }
  .mg-hero-image { min-height: 520px; }
  .mg-trust { margin-top: 24px; }
  .mg-category-grid { grid-template-columns: 1fr 1fr; }
  .mg-category-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .mg-hero h1 { font-size: clamp(3rem, 16vw, 4.3rem); }
  .mg-hero-actions { display: grid; }
  .mg-hero-actions .mg-button { width: 100%; }
  .mg-hero-image { min-height: 390px; }
  .mg-modern-slide {
    min-height: 690px;
    background:
      linear-gradient(90deg, rgba(4, 15, 34, .96) 0%, rgba(4, 15, 34, .82) 58%, rgba(4, 15, 34, .32) 100%),
      url("../images/hero-slide-modern-v1.png") 66% center / cover no-repeat;
  }
  .mg-modern-slide-content {
    width: min(100% - 36px, 1440px);
    padding: 80px 0 105px;
  }
  .mg-modern-slide h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  .mg-modern-slide-actions { display: grid; }
  .mg-modern-slide-actions .mg-button { width: 100%; }
  .mg-trust { grid-template-columns: 1fr; margin-top: 18px; }
  .mg-category-grid { grid-template-columns: 1fr; }
  .mg-category-card,
  .mg-category-card:last-child { grid-column: auto; min-height: 360px; }
  .mg-section-heading,
  .mg-cta { align-items: flex-start; flex-direction: column; }
  body.com-hikashop.layout-listing .hikashop_products,
  body.com-hikashop.layout-listing .hikashop_categories,
  body.com-hikashop.layout-listing .hikashop_products_listing,
  body.com-hikashop.layout-listing .hikashop_category_listing {
    grid-template-columns: 1fr;
  }
  .hikashop_cart { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
