@import url('https://fonts.googleapis.com/css2?family=Niconne&family=Merriweather:wght@300;400;700&family=Averia+Serif+Libre:wght@300;400;700&display=swap');

/* =========================
   Base header / footer
   ========================= */

#header .header-top,
#footer,
.footer-container,
#footer .container,
#footer .block_newsletter,
#footer .footer-container,
.sticky-header,
.sticky-header.is-visible {
  background: #9A89C0 !important;
}

#header .header-top,
#header .header-top .container,
#header .header-top .row,
#footer,
.footer-container,
#footer .container,
#footer .footer-container {
  border: none !important;
  box-shadow: none !important;
}

/* Header identique partout */
#header .header-top .container,
.sticky-header .container {
  max-width: 1450px !important;
  width: 96% !important;
}

/* =========================
   Ancien header desktop
   ========================= */

@media (min-width: 992px) {
  #header .header-nav {
    display: none !important;
  }
}

/* =========================
   Header principal compact
   ========================= */

#header .header-top {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#header .header-top .row,
#header .header-main-row {
  display: flex;
  align-items: center;
}

#header #_desktop_logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#header #_desktop_logo h1,
#header #_desktop_logo a {
  margin: 0 !important;
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1 !important;
}

#header #_desktop_logo img,
#header .logo {
  max-width: 90px !important;
  width: auto !important;
  height: auto !important;
}

#header .header-top-right {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

#header .header-main-content,
.header-main-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 24px !important;
}

#header .header-actions,
.header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

.header-actions #_desktop_user_info,
.header-actions #_desktop_cart,
.header-actions .user-info,
.header-actions .blockcart,
.header-actions .cart-preview {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: transparent !important;
}

/* =========================
   Marque
   ========================= */

#header .custom-brand-block {
  display: inline-block !important;
  min-width: 180px !important;
  margin-right: 12px !important;
}

#header .custom-brand-title {
  margin: 0;
  font-family: 'Niconne', cursive;
  font-size: 30px !important;
  line-height: 0.95 !important;
  font-weight: 400;
  color: #000000 !important;
}

#header .custom-brand-subtitle {
  margin-top: 2px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  color: #000000 !important;
  font-family: 'Merriweather', serif;
  font-weight: 400;
}

/* =========================
   Menu principal
   ========================= */

#header #_desktop_top_menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

#header #_desktop_top_menu ul#top-menu {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 24px !important;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

#header #_desktop_top_menu ul#top-menu > li {
  margin: 0;
}

#header #_desktop_top_menu ul#top-menu > li > a {
  padding: 0;
  font-size: 14px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #000000 !important;
}

#header #_desktop_top_menu ul#top-menu > li > a:hover {
  color: #2d2438 !important;
}

#header #_desktop_top_menu ul#top-menu > li:last-child > a {
  padding: 0;
  border: none !important;
  color: #000000 !important;
}

/* Neutraliser l'effet visuel trop serré de l'item actif */
#header #_desktop_top_menu ul#top-menu > li.current > a,
#header #_desktop_top_menu ul#top-menu > li.category.current > a {
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #000000 !important;
}

/* =========================
   Recherche repliée
   ========================= */

#search_widget {
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  position: relative;
  overflow: visible;
}

#search_widget form {
  position: relative;
  width: 44px;
  margin: 0;
}

#search_widget form input[type="text"] {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 38px !important;
  padding: 0 38px 0 0 !important;
  border: none !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 1;
  transition: width 0.25s ease, max-width 0.25s ease, background 0.25s ease;
}

#search_widget form input[type="text"]::placeholder {
  color: transparent !important;
}

#search_widget form button,
#search_widget .search {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #000000 !important;
  z-index: 2;
  pointer-events: none;
}

#search_widget:hover,
#search_widget:focus-within {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
}

#search_widget:hover form,
#search_widget:focus-within form {
  width: 220px;
}

#search_widget:hover form input[type="text"],
#search_widget:focus-within form input[type="text"] {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  padding: 0 42px 0 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #000000 !important;
  border-radius: 6px !important;
  cursor: text;
}

#search_widget:hover form input[type="text"]::placeholder,
#search_widget:focus-within form input[type="text"]::placeholder {
  color: #555555 !important;
}

/* =========================
   Connexion / panier
   ========================= */

#header .header-nav a,
#header .header-nav .material-icons,
#header .header-nav .blockcart,
#header .header-nav .cart-preview,
#header .header-nav .shopping-cart,
#header .header-nav .user-info a,
#header .header-nav #_desktop_cart .cart-preview a,
.header-actions a,
.header-actions .material-icons,
.header-actions .blockcart,
.header-actions .cart-preview,
.header-actions .shopping-cart,
.header-actions .user-info a,
.header-actions #_desktop_cart .cart-preview a {
  color: #000000 !important;
}

#header .header-nav .blockcart,
#header .header-nav .cart-preview,
#header .header-nav .cart-preview.active,
.header-actions .blockcart,
.header-actions .cart-preview,
.header-actions .cart-preview.active {
  background: transparent !important;
  box-shadow: none !important;
}

#header .header-nav a:hover,
#header .header-nav .material-icons:hover,
#header .header-nav .cart-preview.active a:hover,
#header .header-nav .shopping-cart:hover,
.header-actions a:hover,
.header-actions .material-icons:hover,
.header-actions .shopping-cart:hover {
  color: #2d2438 !important;
}

/* =========================
   Sticky header
   ========================= */

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.sticky-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.sticky-header-inner {
  min-height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px !important;
}

.sticky-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.sticky-logo {
  width: 30px !important;
  height: auto;
  display: block;
}

.sticky-brand-name {
  font-family: 'Niconne', cursive;
  font-size: 24px !important;
  line-height: 1;
  color: #000000 !important;
}

.sticky-nav {
  display: flex;
  align-items: center;
}

.sticky-menu {
  display: flex;
  align-items: center;
  gap: 18px !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticky-menu li {
  margin: 0;
  padding: 0;
}

.sticky-menu li a {
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000000 !important;
  text-decoration: none;
}

.sticky-menu li a:hover {
  color: #2d2438 !important;
}

.sticky-menu li:last-child a {
  border: none !important;
  padding: 0;
  color: #000000 !important;
}

/* =========================
   Typographie globale
   ========================= */

h1,
h2,
h3 {
  font-family: 'Niconne', cursive;
  font-weight: 400;
}

p {
  font-family: 'Merriweather', serif;
  font-weight: 400;
}

ul,
ol,
li {
  font-family: 'Averia Serif Libre', serif;
  font-weight: 400;
}

/* =========================
   Footer
   ========================= */

#footer,
.footer-container,
#footer .container,
#footer .block_newsletter,
#footer .footer-container {
  color: #000000 !important;
}

#footer a,
#footer p,
#footer li,
#footer ul li,
#footer .text-muted,
#footer .h3,
#footer .h4,
#footer .block-title,
#footer .footer-block-title,
#footer .links .h3,
#footer .links .title,
#footer .block_newsletter label,
#footer .copyright,
#footer .account-list a {
  color: #000000 !important;
}

#footer a:hover {
  color: #2d2438 !important;
}

#footer input,
#footer input[type="email"],
#footer input[type="text"],
#footer button,
#footer .btn {
  color: #000000 !important;
  border-color: #000000 !important;
}

h2.tw_products-section-title {
  font-family: 'Merriweather', serif !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* =========================
   Fond
   ========================= */

#wrapper {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    url('/themes/child_classic/assets/img/motifs_final.png');
  background-repeat: repeat, repeat;
  background-position: center, center;
  background-size: auto, 220px;
}

/* =========================
   Personnalisation PrettyBlocks
   ========================= */

a.tw_text-lg.tw_font-semibold {
  color: #1f1f1f !important;
  text-decoration: none !important;
}

a.tw_text-lg.tw_font-semibold:hover {
  color: #2d2438 !important;
  text-decoration: underline !important;
}

.product-price p.tw_text-lg.tw_text-red-600 {
  color: #1f1f1f !important;
  font-weight: 600 !important;
}

.tw_text-center.tw_mt-4 > a.tw_text-lg.tw_font-semibold:first-child {
  display: none !important;
}

.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a,
.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a:link,
.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a:visited,
.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a:hover,
.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a:active,
.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a:focus {
  color: #000000 !important;
  text-decoration: none !important;
}

.tw_text-center.tw_mt-4 > p.tw_text-lg.tw_font-semibold > a:hover {
  color: #2d2438 !important;
}

/* =========================
   Accueil : élargir le contenu sans changer le header
   ========================= */

body#index .featured-products {
  width: 100%;
}

body#index #content.page-home {
  width: 100%;
}

body#index .featured-products .products {
  margin-left: -8px !important;
  margin-right: -8px !important;
}

body#index .featured-products .js-product-miniature,
body#index .featured-products .product-miniature {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* =========================
   Sous-menu catalogue en colonne
   ========================= */

.popover.sub-menu .top-menu {
  display: flex !important;
  flex-direction: column !important;
}

.popover.sub-menu .top-menu > li {
  width: 100% !important;
}

.popover.sub-menu .top-menu > li > a {
  display: block;
  padding: 8px 15px;
}

.popover.sub-menu .top-menu .top-menu {
  padding-left: 20px;
}

.popover.sub-menu .top-menu .top-menu > li > a {
  padding: 4px 0 4px 20px !important;
  font-size: 12.5px !important;
  color: #7a7a7a !important;
}

div[id^="top_sub_menu_"].popover.sub-menu {
  width: 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  padding: 10px 20px 10px 10px !important;
  box-sizing: border-box !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border-top: 3px solid #9A89C0 !important;
}

.popover.sub-menu {
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border-top: 3px solid #9A89C0 !important;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
  overflow: visible !important;
}

.popover.sub-menu:not(.collapse),
.popover.sub-menu.show,
.top-menu .sub-menu:not(.collapse) {
  transform: translateY(0);
}

.popover.sub-menu .top-menu > li > a {
  padding: 6px 0 !important;
  font-size: 12.5px !important;
  white-space: normal !important;
  line-height: 1.3 !important;
}

.popover.sub-menu .top-menu .top-menu > li > a {
  padding: 4px 0 4px 20px !important;
  font-size: 11.5px !important;
}

/* Ancrer le panneau sous le lien Catalogue */
li.category#category-20 {
  position: relative !important;
}

div[id^="top_sub_menu_"].popover.sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  margin-top: 0 !important;
}

.popover.sub-menu a.dropdown-item:hover {
  color: #7E5A8C !important;
  background-color: #f5f3fa !important;
}

/* =========================
   Retire la recherche
   ========================= */

#search_widget {
  display: none !important;
}

/* =========================
   Espacer "Déconnexion" et le nom du compte connecté
   ========================= */

#header .user-info {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

#header .user-info .logout {
  margin-right: 0 !important;
}

/* =========================
   Sous-catégories en flyout au survol
   ========================= */

.popover.sub-menu li.category {
  position: relative;
}

.popover.sub-menu li.category > div.collapse {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  min-width: 220px !important;
  background: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border-top: 3px solid #9A89C0 !important;
  padding: 10px 15px !important;
  z-index: 30 !important;
}

.popover.sub-menu li.category:hover > div.collapse {
  display: block !important;
}

.popover.sub-menu li.category:has(> div.collapse) > a::after {
  content: "\203A";
  float: right;
  font-weight: bold;
  margin-left: 8px;
}

/* =========================
   Catégorie : compacter le haut de page
   ========================= */

body#category .breadcrumb {
  margin: 0 0 4px !important;
  padding: 0 !important;
}

body#category #js-product-list-header {
  margin: 0 !important;
  padding: 0 !important;
}

body#category .block-category.card.card-block {
  margin: 0 0 10px !important;
  padding: 10px 18px !important;
  min-height: 0 !important;
}

body#category .block-category h1 {
  margin: 0 !important;
  line-height: 1 !important;
}

body#category #subcategories {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

body#category #products {
  margin-top: 6px !important;
}

/* Supprime le grand bloc blanc vide du header catégorie */
/* Cache le bloc catégories vide dans la colonne gauche */
body#category .block-categories {
  display: none !important;
}

body#category #js-product-list-header {
  display: none !important;
}

/* Si la description catégorie est vide, on la masque */
body#category #category-description:empty {
  display: none !important;
}

/* Cache le conteneur PrettyBlocks vide */
body#category #category-description .blocks.d-none,
body#category [data-zone-alias="Category description"] {
  display: none !important;
}

/* Garde juste le titre si tu veux */
body#category #js-product-list-header .h1 {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

/* Page catalogue : on retire complètement la colonne de gauche */
/*body#category #left-column {
  display: none !important;
}*/

/* Le contenu principal prend toute la largeur */
body#category #content-wrapper {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Sécurité supplémentaire sur la ligne */
body#category #wrapper .row {
  display: flex;
  flex-wrap: wrap;
}

/* 5 produits par ligne sur desktop, seulement dans la grille catalogue */
body#category #products .products.row {
  display: flex !important;
  flex-wrap: wrap !important;
}

body#category #products .products.row > .js-product.product {
  flex: 0 0 20% !important;
  max-width: 20% !important;
  width: 20% !important;
}

/* Supprime le fond blanc des icônes sociales */
.block-social ul li {
  display: inline-block;
  list-style: none;
  margin-left: 10px;
}

.block-social ul li a {
  display: block;
  width: 32px;
  height: 32px;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.block-social ul li.facebook a {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'><path d='M22 12a10 10 0 1 0-11.6 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.4v7A10 10 0 0 0 22 12z'/></svg>");
}

.block-social ul li.instagram a {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'><path d='M12 2c2.7 0 3.1 0 4.2.1 1.1.1 1.8.2 2.4.5.7.3 1.2.6 1.7 1.1.5.5.9 1 1.1 1.7.3.6.4 1.3.5 2.4.1 1.1.1 1.5.1 4.2s0 3.1-.1 4.2c-.1 1.1-.2 1.8-.5 2.4a4.5 4.5 0 0 1-1.1 1.7c-.5.5-1 .9-1.7 1.1-.6.3-1.3.4-2.4.5-1.1.1-1.5.1-4.2.1s-3.1 0-4.2-.1c-1.1-.1-1.8-.2-2.4-.5a4.5 4.5 0 0 1-1.7-1.1 4.5 4.5 0 0 1-1.1-1.7c-.3-.6-.4-1.3-.5-2.4C2 15.1 2 14.7 2 12s0-3.1.1-4.2c.1-1.1.2-1.8.5-2.4.3-.7.6-1.2 1.1-1.7.5-.5 1-.9 1.7-1.1.6-.3 1.3-.4 2.4-.5C8.9 2 9.3 2 12 2zm0 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM17.5 5.5a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/></svg>");
}

.block-social ul li a:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}




/* =========================
   Mobile
   ========================= */

@media (max-width: 991px) {
  #header .header-top {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #header .header-top .row,
  #header .header-main-row {
    display: block;
  }

  #header .header-top-right {
    display: block !important;
    margin-top: 12px;
  }

  #header .custom-brand-block {
    display: none !important;
  }

  #search_widget {
    min-width: 100% !important;
    margin-top: 12px;
  }

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