/*
 * GES - Ajustements visuels du theme Universal
 * La couleur #1e386b correspond au fond du logo GES.
 */

:root {
  --ges-navy: #1e386b;
  --ges-navy-dark: #15294f;
  --ges-blue: #2d4f8c;
  --ges-blue-muted: #52698f;
  --ges-blue-pale: #e8edf6;
  --ges-blue-soft: #dce3f0;
  --ges-blue-border: #bdc8dc;
  --ges-border: #d9dfeb;
  --ges-surface-soft: #f7f9fc;
  --ges-page: #f4f6fa;
  --ges-text: #172033;
  --ges-text-muted: #66728a;
  --ges-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
body button,
body input,
body select,
body textarea,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .h1,
body .h2,
body .h3,
body .h4,
body .h5,
body .h6,
body .price,
body .old-price,
body #our_price_display {
  font-family: var(--ges-font);
}

body #mega_menu_plus,
body #mega_menu_plus a,
body #mega_menu_plus span,
body #mega_menu_plus ul.mg-menu > li > a,
body #mega_menu_plus ul.mg-menu > li > a span,
body #mega_menu_plus ul.mg-menu > li ul li a,
body #mega_menu_plus ul > li > a,
body #mega_menu_plus ul.mg-menu.menu-content li.mainmenu-parent > .sub ul li a,
body #mega_menu_plus ul.mg-menu.menu-content li.mainmenu-parent > .sub a span.menu-item-link-text,
body #mega_menu_plus ul.mg-menu.menu-content li.mainmenu-parent > .sub .titlesub .menu-item-link-text,
body #mega_menu_plus .menu-item-link-text,
body #mega_menu_plus .titlesub,
body #block_top_menu,
body #block_top_menu a,
body .menu,
body .menu a {
  font-family: var(--ges-font) !important;
}

body {
  color: var(--ges-text);
  background: var(--ges-page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* En-tete inspire de l'interface GES Occasions. */
#header-container {
  padding-top: 0;
  box-shadow: 0 1px 0 rgba(17, 37, 72, .12);
}

.header-nav {
  display: none !important;
}

#header {
  background-color: var(--ges-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#header > .container {
  min-height: 76px;
}

#header-logo {
  flex-shrink: 0;
}

#header-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

#header-logo .header-logo-mobile {
  display: none;
}

/* Fond de page et cartes plus proches du BO GES Occasions. */
#page-container {
  background-color: var(--ges-page);
}

#page {
  background-color: transparent;
}

.products .product-container {
  border-color: var(--ges-border);
  border-radius: .8rem;
  box-shadow: 0 4px 14px rgba(30, 56, 107, .07);
}

.products .product-container:hover {
  border-color: var(--ges-blue-border);
  box-shadow: 0 4px 14px rgba(30, 56, 107, .10);
}

/* La home conserve ses actions produit, mais sans zoom ni ombre au survol. */
body#index .products .product-container,
body#index .products .product-container:hover {
  box-shadow: none;
}

body#index .products .product-container .product-img {
  transition: none;
}

body#index .products .product-container:hover .product-img {
  transform: none;
}

/* En-tete compact des pages categorie. */
#header-category {
  margin-top: .75rem;
  margin-bottom: .25rem;
}

#header-category .ges-category-card {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: .65rem .75rem;
  background: #fff;
  border: 1px solid var(--ges-border);
  border-radius: .8rem;
  box-shadow: 0 4px 14px rgba(30, 56, 107, .07);
  color: var(--ges-text);
}

#header-category .ges-category-thumbnail {
  flex: 0 0 112px;
  width: 112px;
  height: 72px;
  margin-right: .85rem;
  overflow: hidden;
  background: var(--ges-surface-soft);
  border: 1px solid var(--ges-border);
  border-radius: .45rem;
}

#header-category .ges-category-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#header-category .category-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: .8rem;
  line-height: 1.35;
}

#header-category .category-text h1 {
  margin: 0 0 .25rem;
  color: var(--ges-navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

#header-category .category-description {
  max-height: none;
  margin: 0;
  color: var(--ges-text-muted);
}

#header-category .category-description p {
  margin: 0 0 .25rem;
}

#header-category .category-description p:last-child {
  margin-bottom: 0;
}

#subcategories {
  justify-content: flex-start !important;
  margin-top: .75rem !important;
}

#subcategories .category-miniature {
  flex: 0 0 220px;
  max-width: 220px;
  margin-bottom: .75rem !important;
  padding-right: .375rem;
  padding-left: .375rem;
}

#subcategories .subcategory-cover {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  min-height: 58px;
  padding: .3rem;
  background: #fff;
  border: 1px solid var(--ges-border) !important;
  border-radius: .8rem;
  box-shadow: 0 4px 14px rgba(30, 56, 107, .07);
  text-align: left !important;
}

#subcategories .subcategory-cover img {
  flex: 0 0 72px;
  width: 72px !important;
  height: 48px !important;
  border-radius: .45rem;
  object-fit: cover;
}

#subcategories .subcategory-name {
  margin: .25rem .5rem !important;
  color: var(--ges-navy);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
}

#subcategories .subcategory-cover:hover img {
  opacity: 1;
}

#header .ges-header-btn,
#header #search_block_top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 40px;
  margin: 0;
  padding: .4rem .8rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: .45rem;
  box-shadow: 0 1px 2px rgba(9, 22, 46, .16);
  color: var(--ges-navy);
  line-height: 1.15;
  text-shadow: none;
  white-space: nowrap;
}

#header .ges-header-btn:hover,
#header .ges-header-btn:focus,
#header #search_block_top .btn:hover,
#header #search_block_top .btn:focus {
  background: var(--ges-blue-pale);
  color: var(--ges-navy-dark);
}

#header .ges-header-btn > i {
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 .45rem 0 0;
  font-size: 16px !important;
  line-height: 1;
  color: var(--ges-navy) !important;
  transform: none !important;
}

#header .ges-header-btn-icon {
  min-width: 40px;
  padding: .4rem .65rem;
}

#header .ges-header-btn-icon > i {
  margin: 0;
}

#header .ges-header-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#header .ges-header-btn-title,
#header .account-block .h3,
#header .ajax_cart_title {
  display: block;
  margin: 0;
  color: var(--ges-navy);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.15;
}

#header .account-block .login,
#header .ajax_cart_total,
#header .ajax_cart_no_product,
#header .ges-header-btn .text-primary {
  color: var(--ges-text-muted) !important;
  font-size: .72rem;
  line-height: 1.15;
}

#header .user-info,
#header #shopping_cart {
  margin-left: .5rem;
}

#header .shopping-cart-block {
  margin-left: 0 !important;
  padding-left: .8rem !important;
}

#header .ajax_cart_quantity,
#header .mobile-shopping-cart .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e23c3c;
  border: 2px solid var(--ges-navy);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
}

#header #search_block_top {
  margin-right: .5rem;
  padding: 0 !important;
}

#header #search_block_top .input-group {
  overflow: hidden;
  width: 220px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: .45rem;
  box-shadow: 0 1px 2px rgba(9, 22, 46, .16);
}

#header #search_block_top .search_query {
  background-color: #fff;
  border: 0;
  color: var(--ges-text);
}

#header #search_block_top .search_query::placeholder {
  color: var(--ges-text-muted);
  opacity: 1;
}

#header #search_block_top .btn {
  border-left: 1px solid var(--ges-border);
  border-radius: 0;
  box-shadow: none;
}

#header .user-info i,
#header #shopping_cart .shopping-cart-block i,
#header .mobile-user-info i,
#header .mobile-shopping-cart i,
#header #menu-icon i {
  font-size: 16px !important;
}

#header .mobile-shopping-cart {
  border-left: 0;
}

@media (min-width: 1200px) {
  #header #search_block_top .input-group {
    width: 280px;
  }
}

@media (max-width: 991px) {
  #header > .container {
    min-height: 68px;
  }

  #header #search_block_top .input-group {
    width: 170px;
  }

  #header-logo .header-logo-mobile {
    display: block;
    max-height: 44px;
    width: auto;
  }

  #header-logo .header-logo-desktop {
    display: none;
  }
}

@media (max-width: 767px) {
  #header > .container {
    justify-content: space-between;
  }

  #header .ges-header-start {
    min-width: 0;
  }

  #header .ges-header-end {
    flex-shrink: 0;
    margin-left: auto;
  }

  #header #_desktop_search_block_top {
    display: none;
  }
}

#theme-footer .footer-block2-img img {
  display: block;
  max-width: 220px;
  max-height: 108px;
  height: auto;
}

@media (min-width: 992px) {
  #theme-footer {
    align-items: center;
    gap: 0 1.5rem;
  }

  #theme-footer .footer-links.footer-links-2 {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    max-width: 280px;
    min-width: 0;
    padding: 0 0.25rem 0 0;
    border-left: 0;
  }

  #theme-footer .footer-links-2 #footer-links-2,
  #theme-footer .footer-block2-img,
  #theme-footer .footer-block2-img a,
  #theme-footer .footer-block2-img span {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    min-height: 0;
  }

  #theme-footer .footer-block2-img img {
    width: auto;
    max-width: 270px;
    max-height: 108px;
    height: auto;
    object-fit: contain;
    object-position: left center;
  }

  #theme-footer .footer-company {
    flex: 1 1 16%;
    min-width: 200px;
    padding-right: 1.25rem;
  }

  #theme-footer .footer-img-txt {
    flex: 0 0 210px;
    width: 210px !important;
    max-width: 210px;
    padding-left: 1.75rem;
    padding-right: 0;
    margin-bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }

  #theme-footer .footer-img-txt .footer-txt {
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }

  #theme-footer .footer-img-txt hr {
    display: none;
  }

  #theme-footer .footer-img-txt img {
    display: block;
    width: auto !important;
    max-width: 168px;
    max-height: 52px;
    height: auto;
  }
}

/* Contenu resserre et centre sur bureau comme le BO GES Occasions ; header et footer gardent la largeur du theme. */
@media (min-width: 992px) {
  #top-column-container > .container,
  #alt-column-container > .container,
  #page-container > .container,
  #page-container > nav > .container,
  #page-container > header.container,
  #page-container > header > .container {
    width: 100%;
    max-width: 1180px;
    padding-right: clamp(1rem, 3vw, 2rem);
    padding-left: clamp(1rem, 3vw, 2rem);
  }
}

@media (max-width: 575px) {
  #header-category .ges-category-card {
    align-items: flex-start;
    min-height: 0;
    padding: .55rem;
  }

  #header-category .ges-category-thumbnail {
    flex-basis: 76px;
    width: 76px;
    height: 58px;
    margin-right: .65rem;
  }

  #header-category .category-text h1 {
    font-size: 1rem;
  }

  #subcategories .category-miniature {
    flex-basis: 100%;
    max-width: 100%;
  }
}
