/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* Suppression des overlays */
.row.box-nav1.box-2.ApRow.has-bg.bg-boxed::before,
.row.box-nav1.box-2.ApRow.has-bg.bg-boxed::after {
  display: none !important;
}

/* Fond French Navy avec bordure transparente qui force le rendu */
.row.box-nav1.box-2.ApRow.has-bg.bg-boxed {
  background: #02295F !important;
  position: relative !important;
  z-index: auto !important;
  border: 0.1px solid rgba(0, 0, 0, 0.001) !important;
}

/* Header mobile */
@media (max-width: 768px) {
  .box-logomobile {
    position: relative !important;
    z-index: auto !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .box-logomobile .h-logo {
    display: block !important;
    text-align: left !important;
    padding-left: 10px !important;
  }

  .box-logomobile .h-logo img {
    max-height: 100px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Menu mobile au-dessus de tout */
  .leo-mobile-nav {
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
  }

  .leo-mobile-nav .leo-menu {
    z-index: 10001 !important;
    position: relative !important;
    cursor: pointer !important;
    display: block !important;
    pointer-events: auto !important;
  }

  .row.box-nav1 {
    z-index: auto !important;
  }
}

#footer {
  background-color: #02295F !important;
}
.footer-container,
#footer .wrapper {
  background-color: transparent !important;
}

/* Bouton panier */
.leo-bt-cart {
  background-color: #00229F !important;
  color: white !important;
  border: none !important;
}
.leo-bt-cart:hover {
  background-color: #001A7C !important;
  color: white !important;
}

@media (max-width: 991px) {
  .row.box-nav1.box-2.ApRow.has-bg.bg-boxed {
    pointer-events: auto !important;
  }
}

/* Boutons produit */
.pro3-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  pointer-events: auto !important;
}
.discover-btn {
  background-color: #06144e !important;
  color: white !important;
  border: none !important;
  padding: 10px 16px !important;
  font-size: 13px;
  text-transform: uppercase;
  border-radius: 4px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.discover-btn:hover {
  background-color: #0c1d68 !important;
}
.loupe-btn {
  background-color: #d70000 !important;
  color: white !important;
  border: none !important;
  padding: 0 12px !important;
  height: 40px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.loupe-btn i {
  font-size: 20px;
  line-height: 10px;
}

/* Bouton ajouter au panier */
.btn.btn-primary.add-to-cart {
  background-color: #06144e !important;
  color: white !important;
  border: none !important;
  text-transform: uppercase;
  font-weight: 600;
  height: 64px !important;
  line-height: 64px !important;
  font-size: 15px;
  padding: 0 20px !important;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.btn.btn-primary.add-to-cart:hover {
  background-color: #0c1d68 !important;
  color: white !important;
}

/* TITRE PRODUIT */
h1.h1.product-detail-name {
  font-family: 'Playfair Display', serif;
  color: #1c1c1c;
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PRIX PRODUIT */
.current-price-value {
  font-family: 'Lato', sans-serif;
  color: #d70000;
  font-size: 24px;
  font-weight: bold;
}

/* Select tailles */
select#group_1.form-control.form-control-select {
  background-color: #eef4fc !important;
  color: #000 !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 16px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'12'%20height%3D'8'%20viewBox%3D'0%200%2012%208'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M1.41%200L6%204.58%2010.59%200%2012%201.41%206%207.41%200%201.41%201.41%200z'%20fill%3D'%23666'%20/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}
select#group_1.form-control.form-control-select:hover,
select#group_1.form-control.form-control-select:focus {
  border-color: #0066cc !important;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2) !important;
  outline: none !important;
}
@media (max-width: 768px) {
  select#group_1.form-control.form-control-select {
    font-size: 14px !important;
    padding: 6px 16px 6px 10px !important;
    background-position: right 8px center !important;
    background-size: 10px 6px !important;
  }
}

/* Onglets produit */
.product-tabs .nav-tabs .nav-link.active {
  background-color: #d1ede8 !important;
  color: #1d4f44 !important;
  font-weight: 600 !important;
  border-color: #1d4f44 !important;
  border-radius: 4px 4px 0 0 !important;
}
.product-tabs .nav-tabs .nav-link:hover {
  color: #1d4f44 !important;
}

/* Titres sections */
h5.products-section-title {
  color: #061858 !important;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Menu principal */
.header-nav a {
  color: #ffffff !important;
}
.header-nav a:hover {
  color: #FFD700 !important;
}

/* Top bar */
.box-nav1 .ApHtml p,
.box-nav1 .ApHtml a,
.title_block {
  color: #ffffff !important;
}
.block_aphtml .ApHtml p {
  color: #000000 !important;
}

/* Bouton loupe texte */
#leo_search_block_top .title_block {
  color: transparent !important;
}
#leo_search_block_top .title_block::before {
  color: #ffffff !important;
}
.popup-over .popup-content a {
  color: #222 !important;
}
.popup-over .popup-content a:hover {
  color: #d70000 !important;
}

/* HEADER MOBILE FIX – clics */
@media (max-width: 991px) {
  .header-nav {
    position: relative !important;
    z-index: 10010 !important;
  }
  #_desktop_user_info,
  #leo_search_block_top,
  #_desktop_cart {
    position: relative !important;
    z-index: 10020 !important;
    pointer-events: auto !important;
  }
  .ap-megamenu-overlay,
  .ap-cover,
  .cover-live-edit,
  .aprow.has-bg-boxed::before,
  .aprow.has-bg-boxed::after,
  .ApRow.has-bg.bg-boxed::before,
  .ApRow.has-bg.bg-boxed::after {
    pointer-events: none !important;
  }
  #wrapper,
  .header-nav + * {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Loupe cliquable */
  #leo_search_block_top .title_block {
    display: none !important;
  }
  #leo_search_block_top {
    position: relative !important;
    z-index: 1000 !important;
  }
  form#leosearchtopbox {
    position: absolute !important;
    top: 0; right: 0;
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    padding: 0 !important; margin: 0 !important; border: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    z-index: 1001 !important;
    pointer-events: auto !important;
  }
  form#leosearchtopbox button,
  form#leosearchtopbox input[type="submit"] {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    border: 0 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}
/* Changer la couleur du titre BLOG LE TSHIRTIER */
.block .title_block,
.ApBlog .title_block {
    color: #0055A4 !important; /* Mets le code couleur que tu veux */
}
