/**
 * Mart-io shell — surcouche thème Qlo pour site marketplace dédié.
 * Phase A : header unifié (logo image), footer 4 colonnes, bruit PMS masqué.
 * Tokens : définis dans martio-ui.css (:root) — pas d'@import design/ (souvent absent en prod).
 */

/* ——— Typographie Plus Jakarta Sans — FO client uniquement (pas portail gérant) ——— */
html,
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.qmp-martio-ui,
body.qmp-martio-ui {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  background: var(--mp-color-surface-muted, #f5f5f7) !important;
  color: var(--mp-color-text, #1d1d1f);
  height: auto !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tout le site voyageur : hubs, zones, fiches établissement, compte, checkout… */
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) *:not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]),
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) #header,
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) #columns,
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) #center_column,
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) .columns-container,
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) .qmp-hero-hub,
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) .qmp-martio-footer,
body.qmp-martio-ui:not(.qmp-seller-portal):not([id^="module-qlo_marketplace-seller"]) .qmp-martio-footer * {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* Footer : forçage maximal (spans du copyright inclus) */
body.qmp-martio-ui .qmp-martio-footer,
body.qmp-martio-ui .qmp-martio-footer *:not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]) {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* Filtre catalogue (hub + zone) : libellés VILLE / QUARTIER / … */
body.qmp-martio-ui .qmp-search-hero,
body.qmp-martio-ui .qmp-search-hero *:not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]):not(svg):not(path),
body.qmp-martio-ui .qmp-search-hero-field label {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

body.qmp-martio-ui .icon,
body.qmp-martio-ui [class^="icon-"],
body.qmp-martio-ui [class*=" icon-"],
body.qmp-martio-ui .fa,
body.qmp-martio-ui [class^="fa-"] {
  font-family: FontAwesome !important;
}

body.qmp-martio-ui #page,
body.qmp-martio-ui .columns-container {
  background: var(--mp-color-surface-muted, #f5f5f7);
  height: auto !important;
}

body.qmp-martio-ui .header-container {
  height: auto !important;
  background: transparent !important;
  box-shadow: none;
}

body.qmp-martio-ui #center_column {
  background: transparent;
  padding-top: 0;
}

/* ——— Header flottant glass (inspiration mart-io.com) ——— */
body.qmp-martio-ui #header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 0 4px;
}

/* Accueil : conserver l'image de fond header Qlo (ciel) derrière la barre glass */
body.qmp-martio-ui.index #header {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Pages module : pas de fond #252525 inline du thème */
body.qmp-martio-ui.qmp-module-page #header {
  background-image: none !important;
}

/* Bannière vide masquée */
body.qmp-martio-ui .banner {
  display: none !important;
}

/* Niveau 1 : barre utilitaire masquée (langue/devise déplacées dans header-top) */
body.qmp-martio-ui #nav-main {
  display: none !important;
}

/* Langue / devise dans le header (après Publier mon établissement) */
body.qmp-martio-ui #header .header-top .qmp-locale-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

body.qmp-martio-ui #header .header-top #languages-block-top,
body.qmp-martio-ui #header .header-top #currencies-block-top {
  float: none !important;
  margin: 0;
  padding: 0;
}

body.qmp-martio-ui #header .header-top #languages-block-top .btn.dropdown-toggle,
body.qmp-martio-ui #header .header-top #currencies-block-top .btn.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--mp-color-text-secondary, #6e6e73);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px;
  box-shadow: none;
}

body.qmp-martio-ui #header .header-top #languages-block-top .btn.dropdown-toggle:hover,
body.qmp-martio-ui #header .header-top #currencies-block-top .btn.dropdown-toggle:hover,
body.qmp-martio-ui #header .header-top #languages-block-top .btn.dropdown-toggle:focus,
body.qmp-martio-ui #header .header-top #currencies-block-top .btn.dropdown-toggle:focus {
  color: var(--mp-color-text, #1d1d1f);
  background: transparent;
  box-shadow: none;
}

body.qmp-martio-ui #header .header-top #languages-block-top .dropdown-menu,
body.qmp-martio-ui #header .header-top #currencies-block-top .dropdown-menu {
  min-width: 140px;
  border-radius: 10px;
  border-color: #e5e5ea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ——— Drapeaux langues (ronds) ——— */
body.qmp-martio-ui .qmp-lang-flag {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.qmp-martio-ui .qmp-lang-flag--fr {
  background-image: linear-gradient(
    90deg,
    #002395 0 33.33%,
    #ffffff 33.33% 66.66%,
    #ed2939 66.66% 100%
  );
}

body.qmp-martio-ui .qmp-lang-flag--en,
body.qmp-martio-ui .qmp-lang-flag--gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}

body.qmp-martio-ui #header .header-top #languages-block-top .qmp-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px !important;
  line-height: 1;
}

body.qmp-martio-ui #header .header-top #languages-block-top .qmp-lang-toggle .caret {
  margin-left: 2px;
  color: var(--mp-color-text-secondary, #6e6e73);
}

body.qmp-martio-ui #header .header-top #languages-block-top .dropdown-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

body.qmp-martio-ui #header .header-top #languages-block-top .dropdown-menu .qmp-lang-flag {
  width: 22px;
  height: 22px;
}

body.qmp-martio-ui #menu_cont .qmp-lang-toggle-mobile,
body.qmp-martio-ui #menu_cont #language-selector-popup .list-group-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

body.qmp-martio-ui #menu_cont .qmp-lang-flag {
  width: 24px;
  height: 24px;
}

/* Niveau 2 : barre glass flottante */
body.qmp-martio-ui .header-top {
  background: transparent !important;
  border-bottom: none;
  padding: 0;
}

body.qmp-martio-ui .header-top .container {
  max-width: var(--mp-max-content, 1200px);
  padding: 0 16px;
}

body.qmp-martio-ui .header-top .row {
  margin: 0;
}

body.qmp-martio-ui .header-top .col-xs-12 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  width: 100%;
  padding: 10px 18px 10px 20px;
  float: none;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

body.qmp-martio-ui #header_logo {
  float: none;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

body.qmp-martio-ui #header_logo a {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
  margin: 0;
  padding: 0;
}

body.qmp-martio-ui #header_logo a::after {
  display: none !important;
  content: none !important;
}

body.qmp-martio-ui #header_logo img.logo,
body.qmp-martio-ui #header_logo img.logo.qmp-brand-logo {
  display: block !important;
  height: 26px !important;
  max-height: 26px !important;
  width: auto !important;
  max-width: min(220px, 65vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
  object-fit: contain;
  object-position: left center;
}

/* Drawer hamburger : uniquement langue, devise, contact */
body.qmp-martio-ui #menu_cont a.navigation-link,
body.qmp-martio-ui #menu_cont ul.wk-nav-style:has(a.navigation-link) {
  display: none !important;
}

body.qmp-martio-ui #menu_cont .btn-language-selector-popup,
body.qmp-martio-ui #menu_cont .btn-currency-selector-popup,
body.qmp-martio-ui #menu_cont ul.wk-nav-style a {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

body.qmp-martio-ui #menu_cont ul.wk-nav-style {
  border-bottom-color: #e5e5ea;
  margin-top: 12px;
  padding-bottom: 12px;
}

body.qmp-martio-ui #menu_cont ul.wk-nav-style li a i {
  margin-right: 8px;
  color: #007aff;
}

/* Hamburger + drawer : mobile uniquement */
@media (min-width: 769px) {
  body.qmp-martio-ui #header .nav_toggle,
  body.qmp-martio-ui #header .header-top-item:has(.nav_toggle),
  body.qmp-martio-ui #menu_cont {
    display: none !important;
  }
}

body.qmp-martio-ui #header .header-top .header-top-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  float: none;
  flex-wrap: wrap;
  padding: 0;
}

/* Nav marketplace (Destinations, Publier) — ordre DOM géré en JS */
body.qmp-martio-ui #header .header-top .header-top-menu .qmp-primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Auth client (Connexion / Mon compte / Déconnexion) — displayTop */
body.qmp-martio-ui #header .header-top .qmp-auth-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-link {
  white-space: nowrap;
}

/* Doublon natif blockuserinfo (nav-main + header-top) */
body.qmp-martio-ui #nav-main .header_user_info,
body.qmp-martio-ui #header .header-top .header-top-menu .header_user_info {
  display: none !important;
}

body.qmp-martio-ui .mp-nav-link {
  color: #3a3a3c;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

body.qmp-martio-ui .mp-nav-link:hover {
  color: #0a2540;
  text-decoration: none;
}

/* Pas d’encadré focus au clic (logo, Destinations, Publier, Connexion…) */
body.qmp-martio-ui #header a:focus,
body.qmp-martio-ui #header a:focus-visible,
body.qmp-martio-ui #header a:active,
body.qmp-martio-ui #header button:focus,
body.qmp-martio-ui #header button:focus-visible,
body.qmp-martio-ui #header button:active,
body.qmp-martio-ui #header_logo a:focus,
body.qmp-martio-ui #header_logo a:focus-visible,
body.qmp-martio-ui #header_logo a:active,
body.qmp-martio-ui .mp-nav-link:focus,
body.qmp-martio-ui .mp-nav-link:focus-visible,
body.qmp-martio-ui .mp-nav-link:active {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

body.qmp-martio-ui .mp-nav-link.mp-nav-cta {
  color: var(--mp-color-accent, #007aff);
  font-weight: 600;
}

/* Icône connexion : desktop = texte, mobile = bouton rond */
body.qmp-martio-ui .mp-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

body.qmp-martio-ui .mp-nav-login .mp-nav-login-icon {
  display: none;
}

body.qmp-martio-ui .mp-nav-login .mp-nav-login-label {
  display: inline;
}

body.qmp-martio-ui .mp-nav-link.mp-nav-logout {
  color: #b42318;
  font-weight: 600;
}

body.qmp-martio-ui .mp-nav-link.mp-nav-logout:hover {
  color: #8f1a12;
}

/* Hub / module : barre glass flottante au-dessus du hero (bleu jusqu’en haut) */
body.qmp-martio-ui.qmp-hub-page .header-container {
  position: relative;
  z-index: 950;
  height: 0 !important;
  min-height: 0 !important;
  overflow: visible;
}

body.qmp-martio-ui.qmp-hub-page #header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  padding: 12px 0 0;
}

body.qmp-martio-ui.qmp-hub-page #header .header-top {
  background: transparent !important;
  border-bottom: none;
  box-shadow: none;
}

body.qmp-martio-ui.qmp-hub-page #header .header-top .mp-nav-link {
  color: #3a3a3c;
}

body.qmp-martio-ui.qmp-hub-page #header .header-top .mp-nav-link:hover {
  color: #0a2540;
}

body.qmp-martio-ui.qmp-hub-page #header .header-top .mp-nav-link.mp-nav-cta,
body.qmp-martio-ui.qmp-hub-page #header .header-top .qmp-auth-nav .mp-nav-cta {
  color: #007aff;
}

body.qmp-martio-ui.qmp-hub-page #header .header-top #languages-block-top .btn.dropdown-toggle,
body.qmp-martio-ui.qmp-hub-page #header .header-top #currencies-block-top .btn.dropdown-toggle {
  color: #5c5c62;
}

body.qmp-martio-ui.qmp-hub-page #header .header-top-menu .shopping_cart > a:first-child,
body.qmp-martio-ui.qmp-hub-page #header .header-top-menu .shopping_cart > a.qmp-cart-trigger {
  color: #fff !important;
  border: none !important;
  background: #007aff !important;
}

body.qmp-martio-ui.qmp-hub-page .qmp-flash-banner {
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
  padding: 12px 24px 0;
  box-sizing: border-box;
}

body.qmp-martio-ui.qmp-hub-page .qmp-flash-banner--success {
  padding: 12px 16px;
  border-radius: 10px;
  background: #e8f5ee;
  color: #0f6b3f;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Accueil image : textes foncés sur barre glass claire (comme mart-io) */
body.qmp-martio-ui.qmp-header-overlay #header .header-top .mp-nav-link {
  color: #3a3a3c;
}

body.qmp-martio-ui.qmp-header-overlay #header .header-top .mp-nav-link:hover {
  color: #0a2540;
}

body.qmp-martio-ui.qmp-header-overlay #header .header-top .mp-nav-link.mp-nav-cta,
body.qmp-martio-ui.qmp-header-overlay #header .header-top .qmp-auth-nav .mp-nav-cta {
  color: #007aff;
}

body.qmp-martio-ui.qmp-header-overlay #header .header-top #currencies-block-top .btn.dropdown-toggle {
  color: #5c5c62;
}

body.qmp-martio-ui.qmp-header-overlay #header .header-top #currencies-block-top .btn.dropdown-toggle:hover {
  color: #0a2540;
}

body.qmp-martio-ui.qmp-header-overlay #header .header-top-menu .shopping_cart > a:first-child,
body.qmp-martio-ui.qmp-header-overlay #header .header-top-menu .shopping_cart > a.qmp-cart-trigger {
  color: #fff !important;
  border: none !important;
  background: #007aff !important;
}

body.qmp-martio-ui .qmp-nav-sep {
  display: none;
}

body.qmp-martio-ui .our_properties_link,
body.qmp-martio-ui .header-top .our_properties_link {
  display: none !important;
}

/* « Prochains événements » retiré de la barre du haut */
.qhe-header-events {
  display: none !important;
}

/* ——— Panier header : bouton icône moderne ——— */
body.qmp-martio-ui .header-top-menu .header-top-item:has(.shopping_cart),
body.qmp-martio-ui #header .header-top-item:has(.shopping_cart) {
  display: flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0;
}

body.qmp-martio-ui #header .shopping_cart {
  display: block !important;
  position: relative;
  line-height: 1;
}

body.qmp-martio-ui #header .shopping_cart > a:first-child,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0 !important;
  border: none !important;
  border-radius: 50%;
  background: #007aff !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 0 !important;
  font-weight: 500;
  text-shadow: none !important;
  text-decoration: none !important;
  overflow: visible;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 122, 255, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

body.qmp-martio-ui #header .shopping_cart > a:first-child:hover,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger:hover {
  background: #0066d6 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.38);
}

body.qmp-martio-ui #header .shopping_cart > a:first-child:focus,
body.qmp-martio-ui #header .shopping_cart > a:first-child:focus-visible,
body.qmp-martio-ui #header .shopping_cart > a:first-child:active,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger:focus,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger:focus-visible,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger:active {
  outline: none !important;
  background: #0066d6 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.28) !important;
}

body.qmp-martio-ui #header .shopping_cart > a:first-child::before,
body.qmp-martio-ui #header .shopping_cart > a:first-child::after,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger::before,
body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger::after {
  display: none !important;
  content: none !important;
  font-family: none !important;
  background: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

body.qmp-martio-ui #header .shopping_cart .qmp-cart-trigger__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  line-height: 0;
  color: #fff;
  pointer-events: none;
}

body.qmp-martio-ui #header .shopping_cart .qmp-cart-trigger__icon svg {
  display: block;
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

body.qmp-martio-ui #header .shopping_cart .ajax_cart_total,
body.qmp-martio-ui #header .shopping_cart .ajax_cart_product_txt,
body.qmp-martio-ui #header .shopping_cart .ajax_cart_product_txt_s,
body.qmp-martio-ui #header .shopping_cart .block_cart_expand,
body.qmp-martio-ui #header .shopping_cart .block_cart_collapse,
body.qmp-martio-ui #header .shopping_cart > a:first-child b {
  display: none !important;
}

body.qmp-martio-ui #header .shopping_cart .ajax_cart_quantity,
body.qmp-martio-ui #header .shopping_cart .ajax_cart_no_product {
  position: absolute;
  top: -3px;
  right: -3px;
  left: auto !important;
  z-index: 3;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  border: 1.5px solid #007aff;
  background: linear-gradient(180deg, #ff5a4f 0%, #ff3b30 100%);
  color: #fff !important;
  font-size: 9px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 4px rgba(255, 59, 48, 0.3);
  box-sizing: border-box;
}

body.qmp-martio-ui #header .shopping_cart .ajax_cart_quantity.unvisible,
body.qmp-martio-ui #header .shopping_cart .ajax_cart_no_product.unvisible {
  display: none !important;
}

body.qmp-martio-ui #header .shopping_cart .cart_block {
  display: none !important;
}

/* Compte Qlo dans la barre logo */
body.qmp-martio-ui .header-top-menu .header_user_info a {
  color: var(--mp-color-text-secondary, #6e6e73);
  font-weight: 500;
}

/* Masquer bandeau recherche Qlo sous / dans la navbar (pas la sidebar catégorie) */
body.qmp-martio-ui #header .header-rmsearch-wrapper,
body.qmp-martio-ui #header .header-rmsearch-container,
body.qmp-martio-ui #header .header-rmsearch-details-wrapper,
body.qmp-martio-ui .header-rmsearch-container.header-rmsearch-hide-xs,
body.qmp-martio-ui.index .header-rmsearch-wrapper,
body.qmp-martio-ui.index #search_hotel_block,
body.qmp-martio-ui.index .filter_header {
  display: none !important;
}

/* Masquer panneau recherche hôtel sur l'accueil (hub module) — déjà couvert ci-dessus */

/* ——— Fil d'Ariane ——— */
body.qmp-martio-ui .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto 16px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 0;
  overflow: visible;
  color: var(--mp-color-text-secondary, #6e6e73);
}

body.qmp-martio-ui .breadcrumb a {
  display: inline;
  position: static;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--mp-color-accent, #007aff);
  text-decoration: none;
  z-index: auto;
}

body.qmp-martio-ui .breadcrumb a:hover {
  text-decoration: underline;
  color: var(--mp-color-accent, #007aff);
}

body.qmp-martio-ui .breadcrumb a:before,
body.qmp-martio-ui .breadcrumb a:after {
  display: none !important;
  content: none !important;
}

body.qmp-martio-ui .breadcrumb a.home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px;
  line-height: 1;
  color: var(--mp-color-accent, #007aff);
}

body.qmp-martio-ui .breadcrumb .navigation-pipe {
  width: auto;
  display: inline;
  text-indent: 0;
  color: #aeaeb2;
  font-weight: 400;
}

body.qmp-martio-ui .breadcrumb .navigation_page {
  display: inline;
  color: var(--mp-color-text-secondary, #6e6e73);
  font-weight: 500;
}

body.qmp-martio-ui .breadcrumb .navigation_page a {
  color: var(--mp-color-accent, #007aff);
}

body.qmp-martio-ui.qmp-module-page .breadcrumb {
  display: none;
}

/* ——— Colonnes pleine largeur (pages module MP / sans sidebar uniquement) ——— */
body.qmp-martio-ui.hide-left-column #left_column,
body.qmp-martio-ui.hide-right-column #right_column {
  display: none;
}

body.qmp-martio-ui.qmp-module-page #columns.container,
body.qmp-martio-ui.hide-left-column:not(.category):not(.product) #columns.container {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

body.qmp-martio-ui.qmp-module-page #center_column,
body.qmp-martio-ui.hide-left-column:not(.category):not(.product) #center_column {
  width: 100% !important;
  max-width: 100%;
  float: none;
  padding: 0;
}

body.qmp-martio-ui.qmp-module-page #top_column {
  display: none;
}

/* Fiche hôtel Qlo : grille native sidebar 3 + contenu 9 côte à côte */
body.qmp-martio-ui.category #columns.container,
body.qmp-martio-ui.product #columns.container {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  body.qmp-martio-ui.category #columns > .row,
  body.qmp-martio-ui.product #columns > .row:has(#left_column) {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  body.qmp-martio-ui.category #left_column,
  body.qmp-martio-ui.product #left_column {
    flex: 0 0 25%;
    width: 25% !important;
    max-width: 25%;
    float: none !important;
    position: relative;
    z-index: 2;
  }

  body.qmp-martio-ui.category #center_column,
  body.qmp-martio-ui.product:has(#left_column) #center_column {
    flex: 0 0 75%;
    width: 75% !important;
    max-width: 75%;
    min-width: 0;
    float: none !important;
    position: relative;
    z-index: 1;
    /* Qlo natif : pas de padding horizontal supplémentaire (col Bootstrap suffit) */
    padding-left: 0;
    padding-right: 0;
  }

  /* Fiche chambre sans sidebar : pleine largeur (comme UAT) */
  body.qmp-martio-ui.product:not(:has(#left_column)) #center_column {
    flex: none;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  body.qmp-martio-ui.category #left_column,
  body.qmp-martio-ui.product #left_column,
  body.qmp-martio-ui.category #center_column,
  body.qmp-martio-ui.product #center_column {
    width: 100% !important;
    max-width: 100%;
    float: none !important;
  }
}

/* ——— Fiche hôtel (catégorie) ——— */
body.qmp-martio-ui.category .header-rmsearch-wrapper,
body.qmp-martio-ui.category .header-rmsearch-details-wrapper {
  background: var(--mp-color-surface, #fff);
  border-bottom: none;
  border-radius: 14px;
}

body.qmp-martio-ui.category #left_column .header-rmsearch-wrapper {
  border: 1px solid var(--mp-color-border, #d2d2d7);
  overflow: visible;
  padding: 14px 16px;
}

body.qmp-martio-ui.category #left_column .header-rmsearch-wrapper .filter_header {
  display: none !important;
}

body.qmp-martio-ui.category #left_column .header-rmsearch-wrapper #search_hotel_block_form .form-group:last-child,
body.qmp-martio-ui.category #left_column .header-rmsearch-wrapper #search_hotel_block_form .search_room_submit_block {
  margin-bottom: 0 !important;
}

body.qmp-martio-ui.category .filter_header {
  font-family: var(--mp-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
}

body.qmp-martio-ui.category #center_column .page-heading,
body.qmp-martio-ui.category h1.page-heading {
  color: var(--mp-color-primary, #0a2540);
  font-weight: 700;
}

body.qmp-martio-ui.category .ajax_add_to_cart_button,
body.qmp-martio-ui.category .button-medium {
  border-radius: var(--mp-radius-button, 10px) !important;
  background: var(--mp-color-accent, #007aff) !important;
  border-color: var(--mp-color-accent, #007aff) !important;
}

/* ——— Footer marketplace Phase A ——— */
/* Ancien footer Qlo natif : masqué dès html.qmp-martio-ui (script head, avant body) */
html.qmp-martio-ui .footer-container,
body.qmp-martio-ui .footer-container {
  display: none !important;
}

body.qmp-martio-ui .qmp-martio-footer {
  background-color: #0a2540;
  background-image:
    linear-gradient(180deg, rgba(10, 37, 64, 0.88) 0%, rgba(10, 37, 64, 0.96) 100%),
    linear-gradient(90deg, #1a4a6e 0%, #0a2540 100%);
  background-size: cover;
  color: rgba(255, 255, 255, 0.92);
  padding: 48px 24px 24px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Même famille + graisse 400 que le tagline (les titres bold tombaient sur le fallback système) */
body.qmp-martio-ui .qmp-martio-footer,
body.qmp-martio-ui .qmp-martio-footer *:not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]) {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
  font-synthesis: none;
}

body.qmp-martio-ui .qmp-martio-footer__tagline {
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 280px;
  margin: 0;
}

body.qmp-martio-ui .qmp-martio-footer__inner {
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px 24px;
}

body.qmp-martio-ui .qmp-martio-footer__logo {
  display: inline-block;
  margin-bottom: 12px;
}

body.qmp-martio-ui .qmp-martio-footer__logo img {
  max-height: 40px;
  width: auto;
}

body.qmp-martio-ui .qmp-martio-footer__col h4,
body.qmp-martio-ui .qmp-martio-footer__col h4.qmp-martio-footer__heading,
body.qmp-martio-ui .qmp-martio-footer .qmp-martio-footer__heading,
.qmp-martio-footer .qmp-martio-footer__heading {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-top: none !important;
}

body.qmp-martio-ui .qmp-martio-footer__col h4::before,
body.qmp-martio-ui .qmp-martio-footer__col h4::after,
body.qmp-martio-ui .qmp-martio-footer .qmp-martio-footer__heading::before,
body.qmp-martio-ui .qmp-martio-footer .qmp-martio-footer__heading::after {
  content: none !important;
  display: none !important;
}

body.qmp-martio-ui .qmp-martio-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.qmp-martio-ui .qmp-martio-footer__col li {
  margin-bottom: 8px;
}

body.qmp-martio-ui .qmp-martio-footer__col a {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13px;
}

body.qmp-martio-ui .qmp-martio-footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}

body.qmp-martio-ui .qmp-martio-footer__bottom {
  max-width: var(--mp-max-content, 1200px);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

body.qmp-martio-ui .qmp-martio-footer__bottom a.qmp-brand {
  color: inherit;
  text-decoration: none;
  font-weight: 400 !important;
}

body.qmp-martio-ui .qmp-martio-footer__bottom a.qmp-brand:hover {
  text-decoration: underline;
}

body.qmp-martio-ui .qmp-brand {
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}

body.qmp-martio-ui .qmp-brand-stay {
  color: var(--mp-color-accent, #007aff);
}

body.qmp-martio-ui .qmp-brand-togo {
  color: #34c759;
}

body.qmp-martio-ui .qmp-brand-mart {
  color: var(--mp-color-accent, #007aff);
}

body.qmp-martio-ui .qmp-brand-io {
  color: #ff3b30;
}

/* ——— Formulaires Qlo ——— */
body.qmp-martio-ui .form-control {
  border-radius: 10px;
  border-color: var(--mp-color-border, #d2d2d7);
  font-family: inherit;
}

body.qmp-martio-ui .btn-primary {
  background: var(--mp-color-accent, #007aff);
  border-color: var(--mp-color-accent, #007aff);
  border-radius: var(--mp-radius-button, 10px);
}

/* Qlo .button-small : retirer le double cadre bleu sur le <span> interne */
body.qmp-martio-ui .button.button-small,
body.qmp-martio-ui a.button.button-small {
  text-shadow: none !important;
  background-image: none !important;
  filter: none !important;
}

body.qmp-martio-ui .button.button-small > span,
body.qmp-martio-ui a.button.button-small > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  text-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
}

body.qmp-martio-ui .button.button-small:hover > span,
body.qmp-martio-ui a.button.button-small:hover > span,
body.qmp-martio-ui .button.button-small > span:hover {
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  color: inherit !important;
}

/* ——— Parcours réservation : panier modal + commande ——— */

/* Modal panier : « Continuer la visite » + « Passer la commande » côte à côte */
body.qmp-martio-ui #layer_cart .layer_cart_cart .button-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

body.qmp-martio-ui #layer_cart .layer_cart_cart .button-container .btn,
body.qmp-martio-ui #layer_cart .layer_cart_cart .button-container .continue {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
}

body.qmp-martio-ui #layer_cart .button-container a.button.button-medium,
body.qmp-martio-ui.order-opc .button.button-medium,
body.qmp-martio-ui.order .button.button-medium,
body.qmp-martio-ui.module-martio_especes-payment .button.button-medium,
body.qmp-martio-ui.module-cheque-payment .button.button-medium,
body.qmp-martio-ui.module-bankwire-payment .button.button-medium,
body.qmp-martio-ui.order-opc a.button.button-medium,
body.qmp-martio-ui.order a.button.button-medium,
body.qmp-martio-ui.order-opc .submit-guest-details,
body.qmp-martio-ui .cart_navigation .button-medium {
  border-radius: 10px !important;
  background: #007aff !important;
  background-image: none !important;
  border: 1px solid #007aff !important;
  padding: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  font-weight: 600;
}

body.qmp-martio-ui #layer_cart .button-container a.button.button-medium {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

body.qmp-martio-ui #layer_cart .button-container span.continue.exclusive-medium,
body.qmp-martio-ui.order-opc .button.exclusive-medium,
body.qmp-martio-ui.order .button.exclusive-medium,
body.qmp-martio-ui .cart_navigation .button.exclusive-medium {
  display: flex;
  border-radius: 10px !important;
  background: #f5f5f7 !important;
  background-image: none !important;
  border: 1px solid #d2d2d7 !important;
  padding: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body.qmp-martio-ui #layer_cart .button-container a.button.button-medium:hover,
body.qmp-martio-ui.order-opc .button.button-medium:hover,
body.qmp-martio-ui.order .button.button-medium:hover,
body.qmp-martio-ui.module-martio_especes-payment .button.button-medium:hover,
body.qmp-martio-ui.module-cheque-payment .button.button-medium:hover,
body.qmp-martio-ui.module-bankwire-payment .button.button-medium:hover,
body.qmp-martio-ui .cart_navigation .button-medium:hover {
  background: #0066d6 !important;
  border-color: #0066d6 !important;
}

body.qmp-martio-ui #layer_cart .button-container a.button.button-medium:hover span,
body.qmp-martio-ui.order-opc .button.button-medium:hover span,
body.qmp-martio-ui.order .button.button-medium:hover span,
body.qmp-martio-ui.module-martio_especes-payment .button.button-medium:hover span,
body.qmp-martio-ui.module-cheque-payment .button.button-medium:hover span,
body.qmp-martio-ui.module-bankwire-payment .button.button-medium:hover span,
body.qmp-martio-ui .cart_navigation .button-medium:hover span {
  background: transparent !important;
  color: #fff !important;
}

body.qmp-martio-ui #layer_cart .button-container span.continue.exclusive-medium span,
body.qmp-martio-ui.order-opc .button.exclusive-medium span,
body.qmp-martio-ui.order .button.exclusive-medium span,
body.qmp-martio-ui .cart_navigation .button.exclusive-medium span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px !important;
  background: transparent !important;
  border: none !important;
  color: #1d1d1f !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.3;
  text-align: center;
}

body.qmp-martio-ui #layer_cart .button-container a.button.button-medium span,
body.qmp-martio-ui.order-opc .button.button-medium span,
body.qmp-martio-ui.order .button.button-medium span,
body.qmp-martio-ui.module-martio_especes-payment .button.button-medium span,
body.qmp-martio-ui.module-cheque-payment .button.button-medium span,
body.qmp-martio-ui.module-bankwire-payment .button.button-medium span,
body.qmp-martio-ui .cart_navigation .button-medium span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  color: #fff !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.3;
  text-align: center;
}

body.qmp-martio-ui #layer_cart .button-container a.button.button-medium span i.right,
body.qmp-martio-ui #layer_cart .button-container span.continue.exclusive-medium span i.left {
  margin: 0 0 0 4px;
  font-size: 12px;
}

body.qmp-martio-ui #layer_cart .button-container span.continue.exclusive-medium span i.left {
  margin: 0 4px 0 0;
}

body.qmp-martio-ui #layer_cart .button-container span.continue.exclusive-medium:hover,
body.qmp-martio-ui.order-opc .button.exclusive-medium:hover,
body.qmp-martio-ui.order .button.exclusive-medium:hover {
  background: #ebebed !important;
  border-color: #c7c7cc !important;
}

/* ——— Récap panier (#layer_cart) — au-dessus du header sticky (z-index 900) ——— */

body.qmp-martio-ui #layer_cart {
  z-index: 1200 !important;
}

body.qmp-martio-ui .layer_cart_overlay {
  z-index: 1190 !important;
  opacity: 0.48;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Desktop : centré viewport (évite le haut tronqué sous le header + position absolute dans #columns) */
@media (min-width: 768px) {
  body.qmp-martio-ui #layer_cart {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    width: min(920px, 92vw) !important;
    max-width: 92vw !important;
    max-height: min(88vh, 760px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product {
    overflow: visible;
  }
}

/* Copyright Qlo natif masqué — ligne StayTogo déjà dans martio_footer */
body.qmp-martio-ui .copyRightWrapper {
  display: none !important;
}

/* ——— Modal panier mobile : bottom sheet (Apple / Fluent) ——— */

body.qmp-layer-cart-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 767px) {
  body.qmp-martio-ui #layer_cart {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    max-height: min(92vh, 780px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.18);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  body.qmp-martio-ui #layer_cart::before {
    content: "";
    display: block;
    width: 36px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: #d2d2d7;
    flex-shrink: 0;
  }

  body.qmp-martio-ui #layer_cart > .clearfix {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product {
    float: none;
    width: 100%;
    padding: 12px 20px 8px;
    overflow: visible;
    position: relative;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .cross {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .cross::before {
    font-size: 18px;
    line-height: 1;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product h2 {
    float: none;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #1d1d1f;
    margin: 8px 32px 14px 0;
    padding-right: 0;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product h2 i {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
    color: #34c759;
    vertical-align: middle;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .product-image-container,
  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_img {
    float: none;
    width: 100%;
    max-width: 100%;
    height: 128px;
    margin: 0 0 12px;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_img img,
  body.qmp-martio-ui #layer_cart .layer_cart_product .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info {
    padding: 0;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info #layer_cart_product_title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d1d1f;
    padding-bottom: 12px;
    margin-bottom: 4px;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f2f2f7;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div:last-child {
    border-bottom: none;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div strong.dark {
    flex: 1 1 42%;
    min-width: 0;
    padding-right: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    line-height: 1.35;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div span,
  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div #layer_cart_product_time_duration,
  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div #layer_cart_product_hotel_name,
  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div #layer_cart_product_unit_price,
  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div #layer_cart_product_quantity,
  body.qmp-martio-ui #layer_cart .layer_cart_product .layer_cart_product_info > div #layer_cart_product_price {
    flex: 1 1 42%;
    min-width: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.35;
    word-break: break-word;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart {
    float: none;
    width: 100%;
    border-left: none;
    border-top: 1px solid #e5e5ea;
    border-radius: 0;
    background: #fafafa;
    padding: 16px 20px 0;
    min-height: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart h2 {
    font-size: 15px;
    font-weight: 600;
    color: #86868b;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0 !important;
    border-bottom: 1px solid #ececf0;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row:last-of-type {
    border-bottom: none;
    padding-bottom: 4px !important;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row strong.dark {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    line-height: 1.35;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row .pull-right,
  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row .ajax_block_room_total,
  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row .ajax_block_product_total,
  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row .ajax_block_cart_total,
  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row .ajax_cart_convenience_fee,
  body.qmp-martio-ui #layer_cart .layer_cart_cart .layer_cart_row .ajax_cart_tax_cost {
    float: none !important;
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    text-align: right;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart .button-container {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: auto;
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, #fafafa 24%);
    border-top: 1px solid #e5e5ea;
    flex-direction: column-reverse;
    gap: 8px;
    z-index: 2;
  }

  body.qmp-martio-ui #layer_cart .layer_cart_cart .button-container .btn,
  body.qmp-martio-ui #layer_cart .layer_cart_cart .button-container .continue,
  body.qmp-martio-ui #layer_cart .button-container a.button.button-medium {
    flex: none;
    width: 100%;
  }

  body.qmp-martio-ui #layer_cart .crossseling {
    display: none;
  }
}

/* ——— Récap commande OPC : libellés FR longs (ex. « Coût total des chambres ») ——— */
body.qmp-martio-ui.order-opc .cart_total_detail_block > p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  margin: 0 0 10px;
}

body.qmp-martio-ui.order-opc .cart_total_detail_block > p::before,
body.qmp-martio-ui.order-opc .cart_total_detail_block > p::after {
  display: none;
  content: none;
}

body.qmp-martio-ui.order-opc .cart_total_detail_block > p > span:first-child {
  min-width: 0;
  line-height: 1.4;
}

body.qmp-martio-ui.order-opc .cart_total_detail_block .cart_total_values {
  float: none !important;
  text-align: right;
  white-space: nowrap;
  align-self: start;
}

body.qmp-martio-ui.order-opc .cart_total_detail_block .cart_final_total_block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: baseline;
  line-height: 1.3;
  margin-bottom: 0;
}

body.qmp-martio-ui.order-opc .cart_total_detail_block .cart_final_total_block > .cart_total_values {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

@media (max-width: 350px) {
  body.qmp-martio-ui.order-opc .cart_total_detail_block > p {
    grid-template-columns: 1fr;
  }

  body.qmp-martio-ui.order-opc .cart_total_detail_block .cart_total_values {
    justify-self: end;
  }

  body.qmp-martio-ui.order-opc .cart_total_detail_block .cart_final_total_block {
    grid-template-columns: 1fr;
  }

  body.qmp-martio-ui.order-opc .cart_total_detail_block .cart_final_total_block > .cart_total_values {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  body.qmp-martio-ui .qmp-martio-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  body.qmp-martio-ui .qmp-martio-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  /* Bande utilitaire noire retirée */
  body.qmp-martio-ui #nav-main {
    display: none !important;
  }

  body.qmp-martio-ui .header-top .container {
    padding: 0 12px;
  }

  /* Langue / devise : drawer hamburger (blocs top déjà hidden-xs) */
  body.qmp-martio-ui #header .header-top .qmp-locale-nav {
    display: none !important;
  }

  /* Une seule ligne glass : logo à gauche, auth + menu à droite */
  body.qmp-martio-ui .header-top .col-xs-12 {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px 8px 14px;
    gap: 8px;
    border-radius: 16px;
  }

  body.qmp-martio-ui #header_logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 184px);
    padding: 0 !important;
    align-self: center;
  }

  body.qmp-martio-ui #header_logo a {
    max-width: 100%;
  }

  body.qmp-martio-ui #header_logo img.logo,
  body.qmp-martio-ui #header_logo img.logo.qmp-brand-logo {
    height: 24px !important;
    max-height: 24px !important;
    max-width: 100% !important;
    width: auto !important;
  }

  body.qmp-martio-ui #header .header-top .header-top-menu {
    flex-wrap: nowrap;
    width: auto;
    flex: 0 0 auto;
    gap: 18px;
    justify-content: flex-end;
    padding: 0 !important;
    align-items: center !important;
    align-self: center;
  }

  /* Liens marketing (Destinations, Publier) → drawer hamburger uniquement */
  body.qmp-martio-ui #header .header-top .qmp-primary-nav {
    display: none !important;
  }

  /* Auth toujours visible dans le header (Connexion si déconnecté) */
  body.qmp-martio-ui #header .header-top .qmp-auth-nav {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-link {
    font-size: 12px;
    white-space: nowrap;
    padding: 0;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login {
    position: relative;
    display: inline-flex !important;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0 !important;
    border-radius: 50%;
    border: 2px solid #007aff;
    background: transparent !important;
    color: #007aff !important;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    text-decoration: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login:hover {
    background: rgba(0, 122, 255, 0.08) !important;
    border-color: #0066d6;
    color: #0066d6 !important;
    text-decoration: none !important;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login:focus,
  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login:focus-visible,
  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login:active {
    background: transparent !important;
    border-color: #007aff;
    color: #007aff !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login .mp-nav-login-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-login .mp-nav-login-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.qmp-martio-ui.qmp-header-overlay #header .header-top .qmp-auth-nav .mp-nav-login,
  body.qmp-martio-ui.qmp-hub-page #header .header-top .qmp-auth-nav .mp-nav-login {
    background: transparent !important;
    border-color: #007aff;
    color: #007aff !important;
  }

  body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-logout {
    font-size: 11px;
  }

  body.qmp-martio-ui #header .header-top .header-top-item {
    display: flex;
    align-items: center;
    align-self: center;
    margin: 0 !important;
  }

  body.qmp-martio-ui #header .shopping_cart > a:first-child,
  body.qmp-martio-ui #header .shopping_cart > a.qmp-cart-trigger {
    box-shadow: 0 1px 4px rgba(0, 122, 255, 0.28);
  }

  body.qmp-martio-ui #header .shopping_cart .ajax_cart_quantity,
  body.qmp-martio-ui #header .shopping_cart .ajax_cart_no_product {
    top: -3px;
    right: -3px;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    font-size: 8px;
    border-width: 1.5px;
  }

  body.qmp-martio-ui #header .nav_toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  body.qmp-martio-ui #header .nav_toggle:hover,
  body.qmp-martio-ui #header .nav_toggle:focus,
  body.qmp-martio-ui #header .nav_toggle:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  body.qmp-martio-ui #header .nav_toggle .icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 !important;
    border-radius: 1px;
    background-color: #007aff !important;
  }

  body.qmp-martio-ui.qmp-header-overlay #header .nav_toggle .icon-bar {
    background-color: #007aff !important;
  }

  body.qmp-martio-ui #header .header-top-item:has(.nav_toggle) {
    display: flex !important;
  }

  /* 360×740 et équivalents : laisser place à Connexion / hamburger */
  @media (max-width: 380px) {
    body.qmp-martio-ui .header-top .container {
      padding: 0 10px;
    }

    body.qmp-martio-ui .header-top .col-xs-12 {
      gap: 4px;
    }

    body.qmp-martio-ui #header_logo {
      max-width: calc(100% - 168px);
    }

    body.qmp-martio-ui #header_logo img.logo,
    body.qmp-martio-ui #header_logo img.logo.qmp-brand-logo {
      height: 22px !important;
      max-height: 22px !important;
    }

    body.qmp-martio-ui #header .header-top .header-top-menu {
      gap: 14px;
    }

    body.qmp-martio-ui #header .header-top .qmp-auth-nav .mp-nav-link {
      font-size: 11px;
    }

    body.qmp-martio-ui #header .nav_toggle {
      width: 30px;
      height: 30px;
      padding: 0 !important;
    }
  }

  body.qmp-martio-ui .qmp-martio-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Pas de glissement horizontal au swipe (contenu plus large que l'écran) */
  html.qmp-martio-ui,
  body.qmp-martio-ui {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    overscroll-behavior-x: none;
  }

  body.qmp-martio-ui #page,
  body.qmp-martio-ui .columns-container,
  body.qmp-martio-ui #columns,
  body.qmp-martio-ui #columns.container,
  body.qmp-martio-ui #center_column,
  body.qmp-martio-ui .qmp-page,
  body.qmp-martio-ui .qmp-catalog,
  body.qmp-martio-ui .qmp-martio-footer {
    max-width: 100%;
    overflow-x: clip;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Marges négatives Bootstrap .row → débordement à droite sur mobile */
  body.qmp-martio-ui.qmp-module-page #columns > .row,
  body.qmp-martio-ui.hide-left-column:not(.category):not(.product) #columns > .row {
    margin-left: 0;
    margin-right: 0;
  }
}
