/*
 * Ordissimo brand overrides for Hummingbird (Bootstrap 5)
 * Charte : rose #da1984, orange #f08f00, foncé #2d2d2b
 */

/* -------------------------------------------------------------------------
   Bootstrap 5 CSS variables — couleur primaire Ordissimo
   ------------------------------------------------------------------------- */
:root {
  --bs-primary:             #da1984;
  --bs-primary-rgb:         218, 25, 132;
  --bs-primary-text-emphasis: #da1984;
  --bs-primary-bg-subtle:   #fce8f4;
  --bs-primary-border-subtle: #f5a8d4;

  --bs-link-color:          #da1984;
  --bs-link-color-rgb:      218, 25, 132;
  --bs-link-hover-color:    #b01068;
  --bs-link-hover-color-rgb: 176, 16, 104;

  --bs-btn-bg:              #da1984;
  --bs-btn-border-color:    #da1984;
  --bs-btn-hover-bg:        #b01068;
  --bs-btn-hover-border-color: #b01068;

  --ordissimo-orange:       #f08f00;
  --ordissimo-dark:         #2d2d2b;
  --ordissimo-grey:         #d7d7d7;
}

/* Dark mode — garder la cohérence */
[data-bs-theme="dark"] {
  --bs-primary:             #f060ac;
  --bs-primary-rgb:         240, 96, 172;
  --bs-link-color:          #f060ac;
  --bs-link-color-rgb:      240, 96, 172;
  --bs-link-hover-color:    #f590c8;
}

/* -------------------------------------------------------------------------
   Boutons
   ------------------------------------------------------------------------- */
.btn-primary,
a.btn-primary {
  color: #fff !important;
}

.btn-primary {
  --bs-btn-color:           #fff;
  --bs-btn-bg:              #da1984;
  --bs-btn-border-color:    #da1984;
  --bs-btn-hover-color:     #fff;
  --bs-btn-hover-bg:        #b01068;
  --bs-btn-hover-border-color: #a50f60;
  --bs-btn-active-bg:       #a50f60;
  --bs-btn-active-border-color: #990e59;
  --bs-btn-disabled-bg:     #da1984;
  --bs-btn-disabled-border-color: #da1984;
}

.btn-outline-primary {
  --bs-btn-color:           #da1984;
  --bs-btn-border-color:    #da1984;
  --bs-btn-hover-bg:        #da1984;
  --bs-btn-hover-border-color: #da1984;
  --bs-btn-active-bg:       #da1984;
  --bs-btn-active-border-color: #da1984;
}

/* Bouton "Ajouter au panier" */
.btn.add-to-cart,
.add-to-cart {
  background-color: #da1984;
  border-color: #da1984;
  color: #fff;
}
.btn.add-to-cart:hover,
.add-to-cart:hover {
  background-color: #b01068;
  border-color: #b01068;
}

/* Ordissimo legacy button class */
.btn.btn-ordissimo {
  font-size: 1.1rem;
  border: 2px solid #da1984;
  background: #da1984;
  color: #fff;
  min-width: 200px;
  border-radius: 3px;
}
.btn.btn-ordissimo:hover {
  background: #b01068;
  border-color: #b01068;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.header-top {
  background-color: #fff;
  border-bottom: 2px solid #da1984;
}

#header .header-nav {
  background-color: #2d2d2b;
  color: #fff;
}

#header .header-nav a {
  color: #fff;
}

/* -------------------------------------------------------------------------
   Navigation / menu
   ------------------------------------------------------------------------- */
.ps-navigation,
.top-menu {
  background-color: #2d2d2b;
}

.top-menu a {
  color: #fff !important;
}

.top-menu > li > a:hover,
.top-menu > li.current > a {
  color: #da1984!important;
}

/* Dropdown menu */
.popover,
.top-menu .sub-menu {
  border-top: 3px solid #da1984;
}

/* -------------------------------------------------------------------------
   Liens globaux
   ------------------------------------------------------------------------- */
a {
  color: #da1984;
}
a:hover {
  color: #b01068;
}

/* -------------------------------------------------------------------------
   Badges & labels
   ------------------------------------------------------------------------- */
.badge.bg-primary,
.product-flags .badge,
.label.label-primary {
  background-color: #da1984 !important;
  color: #fff;
}

/* Badge promo / remise */
.badge.discount,
.product-flag.discount {
  background-color: var(--ordissimo-orange) !important;
}

/* -------------------------------------------------------------------------
   Prix
   ------------------------------------------------------------------------- */
.price,
.product-price,
.current-price .price {
  color: #da1984;
  font-weight: 700;
}

.regular-price {
  color: #999;
}

/* -------------------------------------------------------------------------
   Pagination & breadcrumb
   ------------------------------------------------------------------------- */
.page-item.active .page-link,
.pagination .active .page-link {
  background-color: #da1984;
  border-color: #da1984;
}

.page-link {
  color: #da1984;
}
.page-link:hover {
  color: #b01068;
}

.breadcrumb-item a {
  color: #da1984;
}

/* -------------------------------------------------------------------------
   Formulaires
   ------------------------------------------------------------------------- */
.form-control:focus {
  border-color: #da1984;
  box-shadow: 0 0 0 0.2rem rgba(218, 25, 132, 0.25);
}

input.form-control {
  color: #474747;
}

/* -------------------------------------------------------------------------
   Barre de recherche
   ------------------------------------------------------------------------- */
.search-widget .btn,
#search_widget button {
  background-color: #da1984;
  border-color: #da1984;
  color: #fff;
}
.search-widget .btn:hover {
  background-color: #b01068;
}

/* -------------------------------------------------------------------------
   Blocs réassurance
   ------------------------------------------------------------------------- */
#blockreassurance .block-icon {
  fill: #da1984;
  color: #da1984;
}

/* -------------------------------------------------------------------------
   Panier (mini-cart)
   ------------------------------------------------------------------------- */
.cart-preview .cart-total,
.cart-preview .value {
  color: #da1984;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
footer {
  background-color: #2d2d2b;
  color: #d7d7d7;
}

footer a {
  color: #d7d7d7;
}
footer a:hover {
  color: #da1984;
}

footer .footer-container h3,
footer .footer-container .h3 {
  color: #fff;
  border-bottom: 2px solid #da1984;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

footer .block-contact {
  color: #d7d7d7;
}

/* -------------------------------------------------------------------------
   Composants Ordissimo (repris du custom.css original)
   ------------------------------------------------------------------------- */
.about-box {
  height: 145px;
  background: #2d2d2b;
  width: 100%;
  padding-top: 10px;
  text-align: center;
  margin-bottom: 10px;
}
.about-box.large {
  height: 300px;
  padding: 40px 5px;
}
.about-box:hover {
  background: #f08f00;
}
.about-box img {
  margin-top: 4px;
  margin-bottom: 17px;
}
.about-box h4 {
  text-transform: uppercase;
  font-size: 17px;
  font-weight: bold;
  margin-top: 0;
  color: #fff;
}
.about-box h4 a {
  color: #fff;
}

.featuresGrid {
  background: #d7d7d7;
  padding: 50px 0;
}
.featureBlock {
  padding: 0 30px 20px;
  background: #fff;
  text-align: center;
  font-weight: 600;
  height: 420px;
  margin-bottom: 10px;
}
.featureBlock h3 {
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 22px;
  color: #da1984;
}

/* -------------------------------------------------------------------------
   Checkbox / radio
   ------------------------------------------------------------------------- */
.form-check-input:checked {
  background-color: #da1984;
  border-color: #da1984;
}

/* -------------------------------------------------------------------------
   Header PS9 masqué — navigation gérée par le header Ordissimo
   ------------------------------------------------------------------------- */
#header {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Barre ticker Euronext Ordissimo
   ------------------------------------------------------------------------- */
.ordissimo-euronext-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 2px 0;
  line-height: 0;
}

/* -------------------------------------------------------------------------
   Menu Ordissimo — overrides nav
   ------------------------------------------------------------------------- */

/* Police Hind comme sur ordissimo.fr */
.ps-mainmenu__tree-link,
.ps-mainmenu__mobile .menu__link {
  font-family: 'Hind', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* "Boutique en ligne" mis en avant */
.ordissimo-boutique-item .ps-mainmenu__tree-link {
  color: #da1984 !important;
  font-weight: 700;
}
.ordissimo-boutique-item .ps-mainmenu__tree-link:hover {
  color: #b01068 !important;
}

/* Sous-menu Services : items pleine largeur */
#submenu-services .submenu__left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
}

#submenu-services .submenu__left-item {
  font-family: 'Hind', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d2d2b;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
#submenu-services .submenu__left-item:hover {
  background: #fce8f4;
  color: #da1984;
}

/* Mobile : "Boutique en ligne" mis en avant */
#mob-boutique .menu__link {
  color: #da1984;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Icônes panier / compte dans le header Ordissimo
   ------------------------------------------------------------------------- */
.ordissimo-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ordissimo-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #2d2d2b;
  text-decoration: none;
}

.ordissimo-header-icon:hover {
  color: #da1984;
}

.ordissimo-header-icon .material-icons {
  font-size: 1.6rem;
}

.ordissimo-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #da1984;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Responsive — iframes
   ------------------------------------------------------------------------- */
.iframe-responsive-small-60 {
  width: 60%;
  margin: auto;
}
@media (max-width: 767px) {
  .iframe-responsive-small-60 {
    width: 100%;
  }
}
.iframe-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}
.iframe-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Produits : 3 par ligne maximum (override du 4 colonnes par défaut) */
@media (min-width: 992px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
