/*
 * Ma Guinguette — page "Matériel à la location"
 * Portée volontairement limitée au menu Joomla itemid-177.
 */

body.itemid-177 {
  --mg-rental-navy: var(--mg-navy, #07162e);
  --mg-rental-navy-soft: var(--mg-navy-soft, #102747);
  --mg-rental-gold: var(--mg-gold, #e6a82f);
  --mg-rental-gold-dark: var(--mg-gold-dark, #d49620);
  --mg-rental-ivory: var(--mg-ivory, #faf7f0);
  --mg-rental-white: #fff;
  --mg-rental-text: var(--mg-text, #162033);
  --mg-rental-muted: var(--mg-muted, #667085);
  --mg-rental-line: var(--mg-line, #e8e5df);
  --mg-rental-radius: 20px;
  --mg-rental-shadow: 0 20px 55px rgba(7, 22, 46, .11);
}

/* Sur cette page, remplacer les modules génériques par l'en-tête catalogue. */
body.itemid-177 #sp-hero,
body.itemid-177 #sp-categories,
body.itemid-177 #sp-page-title,
body.itemid-177 .article-details > .article-header,
body.itemid-177 .article-ratings-social-share {
  display: none !important;
}

/* Le module de rappel est déplacé dans l'en-tête par custom.js. Masquer
   uniquement son emplacement d'origine afin que le bouton du header reste visible. */
body.itemid-177 .sp-module-content-top .sp-module.placerappel {
  display: none !important;
}

body.itemid-177 #sp-main-body.mg-layout-main,
body.itemid-177 #sp-main-body {
  padding: 0 0 clamp(52px, 7vw, 96px) !important;
  background: #f6f7f9;
}

body.itemid-177 #sp-main-body > .container {
  width: min(100%, 1440px);
  max-width: 1440px;
  padding-inline: clamp(14px, 2.4vw, 34px);
}

body.itemid-177 .article-details,
body.itemid-177 [itemprop="articleBody"] {
  margin: 0;
}

.mg-rental-page {
  display: grid;
  gap: clamp(62px, 7vw, 104px);
  color: var(--mg-rental-text);
  font-size: 1rem;
  line-height: 1.65;
}

.mg-rental-page *,
.mg-rental-page *::before,
.mg-rental-page *::after {
  box-sizing: border-box;
}

.mg-rental-page h1,
.mg-rental-page h2,
.mg-rental-page h3,
.mg-rental-page p {
  text-align: left;
}

.mg-rental-page h1,
.mg-rental-page h2,
.mg-rental-page strong {
  font-family: "Open Sans", Arial, sans-serif;
}

.mg-rental-page h1,
.mg-rental-page h2 {
  color: var(--mg-rental-navy);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.mg-rental-page h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

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

.mg-rental-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: var(--mg-rental-white);
  background:
    linear-gradient(90deg, rgba(7, 22, 46, .98) 0%, rgba(7, 22, 46, .94) 42%, rgba(7, 22, 46, .56) 72%, rgba(7, 22, 46, .22) 100%),
    url("/templates/lt_maguinguette/images/hero-guinguette.jpg") center / cover no-repeat;
  border-radius: 0 0 30px 30px;
  box-shadow: var(--mg-rental-shadow);
}

.mg-rental-hero::after {
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(230, 168, 47, .23), transparent 69%);
  content: "";
  pointer-events: none;
}

.mg-rental-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 820px);
  min-height: 520px;
  padding: clamp(48px, 7vw, 92px);
  flex-direction: column;
  justify-content: center;
}

.mg-rental-hero .mg-rental-eyebrow {
  color: var(--mg-rental-gold);
}

.mg-rental-hero h1 {
  max-width: 790px;
  margin: 0;
  color: var(--mg-rental-white);
  font-size: clamp(2.7rem, 5.3vw, 5.25rem);
}

.mg-rental-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.mg-rental-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.mg-rental-button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mg-rental-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.mg-rental-button-gold {
  color: var(--mg-rental-navy) !important;
  background: var(--mg-rental-gold);
  border-color: var(--mg-rental-gold);
}

.mg-rental-button-gold:hover {
  color: var(--mg-rental-navy) !important;
  background: #f2bc52;
  border-color: #f2bc52;
}

.mg-rental-button-light {
  color: var(--mg-rental-white) !important;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .48);
}

.mg-rental-button-light:hover {
  color: var(--mg-rental-navy) !important;
  background: var(--mg-rental-white);
  border-color: var(--mg-rental-white);
}

.mg-rental-highlights {
  display: grid;
  max-width: 800px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  list-style: none;
}

.mg-rental-highlights li {
  display: grid;
  gap: 2px;
}

.mg-rental-highlights strong {
  color: var(--mg-rental-white);
  font-size: .96rem;
}

.mg-rental-highlights span {
  color: rgba(255, 255, 255, .61);
  font-size: .78rem;
}

.mg-rental-section {
  padding-inline: clamp(4px, 1.2vw, 16px);
}

.mg-rental-heading {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.mg-rental-heading > p {
  max-width: 440px;
  margin: 0 0 5px;
  color: var(--mg-rental-muted);
}

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

.mg-rental-category {
  position: relative;
  display: grid;
  min-height: 410px;
  overflow: hidden;
  color: var(--mg-rental-white) !important;
  background: var(--mg-rental-navy);
  border-radius: var(--mg-rental-radius);
  box-shadow: 0 10px 34px rgba(7, 22, 46, .1);
  text-decoration: none !important;
  isolation: isolate;
}

.mg-rental-category::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 46, .06) 24%, rgba(7, 22, 46, .96) 100%);
  content: "";
}

.mg-rental-category img {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.mg-rental-category:hover img {
  transform: scale(1.045);
}

.mg-rental-category-content {
  display: flex;
  padding: 28px;
  flex-direction: column;
  align-self: end;
}

.mg-rental-category-kicker {
  margin-bottom: 8px;
  color: var(--mg-rental-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mg-rental-category strong {
  color: var(--mg-rental-white);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.14;
}

.mg-rental-category-content > span:last-child {
  margin-top: 9px;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.45;
}

.mg-rental-products {
  padding: clamp(42px, 5vw, 68px);
  background: var(--mg-rental-white);
  border: 1px solid var(--mg-rental-line);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(7, 22, 46, .07);
}

/*
 * Le module 112 est intégré dans un article Joomla et n'a donc pas la classe
 * body.com-hikashop. Cette grille lui rend ses quatre vraies colonnes.
 */
body.itemid-177 #hikashop_category_information_module_112 .hk-row-fluid {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

body.itemid-177 #hikashop_category_information_module_112 .hkc-md-3,
body.itemid-177 #hikashop_category_information_module_112 .hikashop_product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  grid-column: auto !important;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_container,
body.itemid-177 #hikashop_category_information_module_112 .hikashop_subcontainer,
body.itemid-177 #hikashop_category_information_module_112 .hikashop_listing_img_title {
  height: 100%;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_subcontainer {
  overflow: hidden;
  background: var(--mg-rental-white) !important;
  border: 1px solid var(--mg-rental-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 26px rgba(7, 22, 46, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_subcontainer:hover {
  transform: translateY(-4px);
  box-shadow: 0 17px 38px rgba(7, 22, 46, .13);
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_listing_img_title {
  display: flex;
  flex-direction: column;
  text-align: left;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_image,
body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_image_subdiv {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  background: var(--mg-rental-ivory);
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_listing_image {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_subcontainer:hover .hikashop_product_listing_image {
  transform: scale(1.025);
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_name {
  order: 2;
  min-height: 77px;
  padding: 18px 18px 8px !important;
  color: var(--mg-rental-navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left !important;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_name a {
  color: inherit !important;
  text-decoration: none;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_price_full {
  order: 3;
  padding: 0 18px 15px !important;
  color: var(--mg-rental-navy) !important;
  font-size: 1.16rem !important;
  font-weight: 800 !important;
  text-align: left;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_code_list,
body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_stock_count {
  order: 4;
}

body.itemid-177 #hikashop_category_information_module_112 a.hikabtn.hikacart {
  order: 8;
  display: inline-flex !important;
  min-height: 46px;
  margin: auto 18px 18px !important;
  padding: 11px 16px !important;
  align-items: center;
  justify-content: center;
  color: var(--mg-rental-navy) !important;
  background: var(--mg-rental-gold) !important;
  border: 1px solid var(--mg-rental-gold) !important;
  border-radius: 999px !important;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

body.itemid-177 #hikashop_category_information_module_112 a.hikabtn.hikacart:hover {
  color: var(--mg-rental-navy) !important;
  background: #ffd968 !important;
  border-color: #ffd968 !important;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_badge_div {
  top: 10px !important;
  right: 10px !important;
  margin: 0 !important;
}

body.itemid-177 #hikashop_category_information_module_112 .hikashop_product_badge_image {
  width: 66px !important;
  height: 66px !important;
  object-fit: contain;
}

.mg-rental-service {
  display: grid;
  padding: clamp(40px, 5.4vw, 76px);
  color: var(--mg-rental-white);
  background: var(--mg-rental-navy);
  border-radius: 28px;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(34px, 6vw, 90px);
}

.mg-rental-service h2,
.mg-rental-final-cta h2 {
  color: var(--mg-rental-white);
}

.mg-rental-service .mg-rental-eyebrow,
.mg-rental-final-cta .mg-rental-eyebrow {
  color: var(--mg-rental-gold);
}

.mg-rental-service-copy > p:not(.mg-rental-eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .68);
}

.mg-rental-text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--mg-rental-gold) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.mg-rental-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.mg-rental-steps li {
  display: grid;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  grid-template-columns: 52px 1fr;
}

.mg-rental-steps li > span {
  color: var(--mg-rental-gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  grid-row: 1 / 3;
}

.mg-rental-steps strong {
  color: var(--mg-rental-white);
  font-size: 1rem;
}

.mg-rental-steps p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .63);
  font-size: .88rem;
}

.mg-rental-faq-list {
  display: grid;
  gap: 12px;
}

.mg-rental-faq details {
  overflow: hidden;
  background: var(--mg-rental-white);
  border: 1px solid var(--mg-rental-line);
  border-radius: 14px;
}

.mg-rental-faq summary {
  position: relative;
  padding: 21px 62px 21px 22px;
  color: var(--mg-rental-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.mg-rental-faq summary::-webkit-details-marker {
  display: none;
}

.mg-rental-faq summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--mg-rental-gold-dark);
  content: "+";
  font-size: 1.55rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.mg-rental-faq details[open] summary::after {
  content: "−";
}

.mg-rental-faq details p {
  max-width: 980px;
  margin: 0;
  padding: 0 22px 22px;
  color: var(--mg-rental-muted);
}

.mg-rental-final-cta {
  display: flex;
  padding: clamp(34px, 5vw, 64px);
  align-items: center;
  justify-content: space-between;
  color: var(--mg-rental-white);
  background:
    linear-gradient(105deg, rgba(7, 22, 46, .98), rgba(16, 39, 71, .94)),
    url("/templates/lt_maguinguette/images/category-guirlandes.jpg") center / cover;
  border-radius: 28px;
  gap: 30px;
}

.mg-rental-final-cta h2 {
  max-width: 790px;
}

.mg-rental-final-cta > div > p:last-child {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, .65);
}

.mg-rental-final-cta .mg-rental-actions {
  margin: 0;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .mg-rental-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.itemid-177 #hikashop_category_information_module_112 .hk-row-fluid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-rental-service {
    grid-template-columns: 1fr;
  }

  .mg-rental-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  body.itemid-177 #sp-main-body > .container {
    padding-inline: 10px;
  }

  .mg-rental-page {
    gap: 58px;
  }

  .mg-rental-hero {
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(7, 22, 46, .97), rgba(7, 22, 46, .79)),
      url("/templates/lt_maguinguette/images/hero-guinguette.jpg") center / cover no-repeat;
    border-radius: 0 0 22px 22px;
  }

  .mg-rental-hero-content {
    min-height: 0;
    padding: 54px 24px 46px;
  }

  .mg-rental-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .mg-rental-actions,
  .mg-rental-final-cta .mg-rental-actions {
    display: grid;
    width: 100%;
  }

  .mg-rental-button {
    width: 100%;
  }

  .mg-rental-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mg-rental-highlights li {
    grid-template-columns: 120px 1fr;
    align-items: baseline;
  }

  .mg-rental-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .mg-rental-category-grid,
  body.itemid-177 #hikashop_category_information_module_112 .hk-row-fluid {
    grid-template-columns: 1fr;
  }

  .mg-rental-category {
    min-height: 350px;
  }

  .mg-rental-category-content {
    padding: 23px;
  }

  .mg-rental-products {
    padding: 28px 16px;
    border-radius: 20px;
  }

  .mg-rental-service,
  .mg-rental-final-cta {
    padding: 32px 23px;
    border-radius: 20px;
  }

  .mg-rental-steps li {
    padding: 18px;
    grid-template-columns: 42px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-rental-page *,
  .mg-rental-page *::before,
  .mg-rental-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
