/*
 * Repiauto 29/10/2026 : en-tete du site, bouton compte (menu) et cloche des
 * notifications, d'apres la maquette "Header Repiauto" (rp-hd-act / rp-hd-pop).
 * Markup : themes/repiauto/modules/leoquicklogin/.../leoquicklogin.tpl.
 * Tout est scope .rp-hda.
 */
.rp-hda {
    display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
    font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #0B1E3D;
}
.rp-hda *, .rp-hda *::before, .rp-hda *::after { box-sizing: border-box; }
.rp-hda a { color: inherit; text-decoration: none; }
.rp-hda button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; margin: 0; box-shadow: none; }
.rp-hda a:focus-visible, .rp-hda button:focus-visible { outline: 2px solid #1B8EF8; outline-offset: 2px; border-radius: 6px; }
.rp-hda-item { position: relative; }

/* Bouton : icone + libelle dessous */
.rp-hda .rp-hda-act {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 76px; height: 56px; padding: 0 6px; border-radius: 8px; font-size: 12px; line-height: 1.2; color: #0B1E3D;
}
.rp-hda .rp-hda-act:hover, .rp-hda .rp-hda-act[aria-expanded="true"] { background: #EEF2F7; }
/* Visiteur (04/11/2026) : lien <a>, "#header a" du theme (gris #232323) l'emportait. */
#header .rp-hda a.rp-hda-act, #header .rp-hda a.rp-hda-act:hover, #header .rp-hda a.rp-hda-act:focus { color: #0B1E3D; text-decoration: none; }
.rp-hda-act > svg { width: 24px; height: 24px; flex-shrink: 0; }
.rp-hda-lbl { display: flex; align-items: center; gap: 2px; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.rp-hda-lbl svg { width: 12px; height: 12px; flex-shrink: 0; }
/* Nom affiche (04/11/2026) : raison sociale des pros parfois longue -> ellipse, chevron garde. */
.rp-hda-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-hda-acc-head strong { overflow-wrap: anywhere; }
.rp-hda-badge {
    position: absolute; top: 4px; left: calc(50% + 4px); min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px;
    font-size: 11px; line-height: 18px; text-align: center; color: #FFFFFF; background: #0B1E3D; font-weight: 500;
}

/* Menus deroulants */
.rp-hda-pop {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 1060; display: none; text-align: left;
    background: #FFFFFF; border: 1px solid #D5DCE6; border-radius: 12px; box-shadow: 0 12px 32px rgba(11, 30, 61, .08);
}
.rp-hda-pop.is-open { display: block; }
.rp-hda-pop--account { width: 250px; padding: 8px 0; font-size: 13px; }
.rp-hda-pop--notif { width: 360px; overflow: hidden; right: -90px; }
.rp-hda-acc-head { padding: 10px 18px 12px; border-bottom: 1px solid #E8ECF2; margin-bottom: 4px; }
.rp-hda-acc-head strong { display: block; font-size: 14px; font-weight: 700; color: #0B1E3D; }
.rp-hda-acc-head span { font-size: 12px; color: #163C5D; }
.rp-hda .rp-hda-pop--account a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; color: #0B1E3D; }
.rp-hda .rp-hda-pop--account a:hover { background: #EEF2F7; color: #0B1E3D; }
.rp-hda-logout { border-top: 1px solid #E8ECF2; margin-top: 6px; padding-top: 6px; }
.rp-hda-logout svg { width: 16px; height: 16px; }

.rp-hda-notif-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #E8ECF2; }
.rp-hda-notif-head strong { font-size: 14px; font-weight: 700; }
.rp-hda .rp-hda-notif-head button { font-size: 12px; color: #1B8EF8; }
.rp-hda .rp-hda-notif-head button:hover { text-decoration: underline; }
.rp-hda .rp-hda-notif-head button[disabled] { color: #9AA6B5; cursor: default; text-decoration: none; }
.rp-hda-notif-list { max-height: 360px; overflow-y: auto; }
.rp-hda .rp-hda-notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #E8ECF2; font-size: 13px; line-height: 1.45; color: #163C5D; }
.rp-hda .rp-hda-notif:hover { background: #EEF2F7; color: #163C5D; }
.rp-hda .rp-hda-notif.is-unread { background: #F2F7FD; color: #0B1E3D; }
.rp-hda-notif i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 18px; background: #E3ECF7; display: flex; align-items: center; justify-content: center; }
.rp-hda-notif i svg { width: 18px; height: 18px; }
.rp-hda-notif small { display: block; font-size: 11px; margin-top: 2px; font-weight: 400; color: #163C5D; }
.rp-hda-notif-empty { padding: 22px 18px; font-size: 13px; color: #163C5D; text-align: center; }
.rp-hda .rp-hda-notif-all { display: block; text-align: center; padding: 12px; font-size: 13px; color: #1B8EF8; }
.rp-hda .rp-hda-notif-all:hover { text-decoration: underline; color: #1B8EF8; }

/* Mobile : icones seules, menus pleine largeur sous l'en-tete */
@media (max-width: 991px) {
    .rp-hda { gap: 0; }
    .rp-hda-item { position: static; }
    .rp-hda .rp-hda-act { min-width: 44px; height: 44px; }
    .rp-hda-lbl { display: none; }
    .rp-hda-badge { top: 3px; left: auto; right: 1px; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; }
    .rp-hda-pop, .rp-hda-pop--notif { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
}

/* ---------- Bouton panier (theme ps_shoppingcart.tpl, .rp-hdc) ---------- */
#_desktop_cart .cart-preview { display: block; width: auto; height: auto; padding: 0; margin: 0; border-radius: 8px; background: transparent; box-shadow: none; }
#_desktop_cart .cart-preview .rp-hdc { display: block; height: auto; padding: 0; margin: 0; border: 0; background: transparent; }
#_desktop_cart .cart-preview .rp-hdc-act {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 76px; height: 56px; padding: 0 6px; margin: 0; border-radius: 8px; background: transparent;
    font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.2; color: #0B1E3D; text-decoration: none;
}
#_desktop_cart .cart-preview .rp-hdc-act:hover, html.show-cart #_desktop_cart .cart-preview .rp-hdc-act { background: #EEF2F7; color: #0B1E3D; }
#_desktop_cart .cart-preview .rp-hdc-act > svg { width: 24px; height: 24px; flex-shrink: 0; }
#_desktop_cart .cart-preview .rp-hdc-amount { display: block; font-size: 12px; font-weight: 500; color: #0B1E3D; white-space: nowrap; }
#_desktop_cart .cart-preview .rp-hdc-badge {
    position: absolute; top: 4px; left: calc(50% + 4px); right: auto; min-width: 18px; width: auto; height: 18px; padding: 0 4px; margin: 0;
    border: 0; border-radius: 9px; font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; color: #FFFFFF; background: #D71F1F;
}
#_desktop_cart .cart-preview .rp-hdc-badge[hidden] { display: none; }

/* ---------- Barre de recherche (Doofinder / ps_searchbar, #search_widget) ---------- */
#search_widget .search-container {
    position: relative; height: 42px; border: 1px solid #D5DCE6; border-radius: 21px; background: #FFFFFF; box-shadow: none;
    font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif; transition: border-color .2s ease;
}
#search_widget .search-container:focus-within { border-color: #0B1E3D; }
#search_widget .search-container > input {
    height: 40px; padding: 0 20px 0 50px; border: 0; border-radius: 21px; background: transparent; box-shadow: none;
    font-family: inherit; font-size: 13px; color: #163C5D; outline: 0;
}
#search_widget .search-container > .search_label_direc {
    top: 50%; left: 50px; right: 20px; margin: 0; transform: translateY(-50%); pointer-events: none;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-family: inherit; font-size: 13px; line-height: 1.4; color: #163C5D; opacity: .85; transition: opacity .15s ease;
}
#search_widget .search-container > input:not(:placeholder-shown) + .search_label_direc { opacity: 0; transform: translateY(-50%); }
#search_widget .search-container > .search-button {
    top: 0; left: 0; width: 50px; height: 40px; padding: 0 0 0 20px; border: 0; border-radius: 21px 0 0 21px;
    background: transparent; box-shadow: none; display: flex; align-items: center;
}
#search_widget .search-container > .search-button .search-icon { width: 20px; height: 20px; fill: #0B1E3D; }
/* Trait vertical du theme avant le panier : absent de la maquette. */
#_desktop_cart::before { display: none !important; }
#_desktop_cart { margin-left: 6px; padding-left: 0; }
/* .right-nav du theme a gap:12px : sans ca, 18 px entre Alertes et le panier
   contre 6 px entre le compte et Alertes (maquette : 6 px partout). */
#header .right-nav { gap: 0; }
/* 17/11/2026 : panier toujours APRES le compte / les alertes, quelle que soit
   la position des modules sur displayNav2 (en ES, ps_shoppingcart etait place
   avant leoquicklogin : panier puis "Login"). */
#header .right-nav > #_desktop_cart { order: 10; }
@media (max-width: 991px) {
    #_desktop_cart { margin-left: 0; }
    #_desktop_cart .cart-preview .rp-hdc-act { min-width: 44px; height: 44px; }
    #_desktop_cart .cart-preview .rp-hdc-amount { display: none; }
    #_desktop_cart .cart-preview .rp-hdc-badge { top: 3px; left: auto; right: 1px; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; }
}
/* Saut du panier au chargement : avant leofeature, le conteneur porte
   .blockcart et "#header .header-nav .blockcart" (theme.css, hauteur 3rem,
   padding .75rem) l'emportait. Meme gabarit avant et apres. */
#header #_desktop_cart .cart-preview { height: auto; padding: 0; margin: 0; background: transparent; }
#header #_desktop_cart .cart-preview .rp-hdc { margin: 0; }
/* Logo, recherche, compte / alertes / panier centres verticalement entre eux. */
@media (min-width: 992px) {
    #header .header-nav .header-complet > .hidden-md-down { display: flex; align-items: center; }
    #header .header-nav .header-complet > .hidden-md-down > .right-nav { padding-top: 0; justify-content: flex-end; }
}

/* ---------- Barre du haut (repi_topbars headerbar.tpl, .rp-tb) ---------- */
#header .top-header.rp-tb { padding: 0; text-align: initial; color: #FFFFFF; font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; }
.rp-tb .rp-tb-in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
    max-width: 1400px; height: 40px; margin: 0 auto; padding: 0 24px; box-sizing: border-box;
}
#header .top-header.rp-tb a, #header .top-header.rp-tb a:hover, #header .top-header.rp-tb a:focus { color: #FFFFFF; text-decoration: none; }
.rp-tb-left { display: flex; align-items: center; gap: 18px; min-width: 170px; font-size: 12px; }
.rp-tb-left .rp-tb-link, .rp-tb-left .rp-tb-text { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; }
.rp-tb-left .rp-tb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rp-tb-center { text-align: center; font-size: 13px; white-space: nowrap; }
.rp-tb-center .rp-tb-link, .rp-tb-center .rp-tb-text { font-size: 13px; font-weight: 400; }
.rp-tb-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12px; }
.rp-tb svg { flex-shrink: 0; }
.rp-tb i[class*="fa-"] { font-size: 13px; }
.rp-tb .rp-tb-pill, .rp-tb-right .rp-tb-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px;
    font-size: 12px; font-weight: 400; line-height: 1.4; white-space: nowrap;
}
.rp-tb .rp-tb-pill:hover, .rp-tb-right .rp-tb-link:hover { border-color: #FFFFFF; }
.rp-tb .rp-tb-cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 4px 4px; border: 0; border-radius: 16px;
    background: #D71F1F; color: #FFFFFF; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; text-transform: none;
}
.rp-tb .rp-tb-cta:hover { background: #B81919; color: #FFFFFF; }
.rp-tb .rp-tb-cta i {
    width: 22px; height: 22px; border-radius: 11px; background: #FFFFFF; color: #D71F1F;
    font-style: normal; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
@media (max-width: 991px) {
    #header .top-header.rp-tb { font-size: 11px; }
    .rp-tb .rp-tb-in { height: 30px; grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 0 16px; }
    .rp-tb-left, .rp-tb-right { display: none; }
    .rp-tb-center, .rp-tb-center .rp-tb-link, .rp-tb-center .rp-tb-text { font-size: 11px; white-space: normal; }
}

/* ---------- Ligne principale (logo / recherche / boutons), maquette rp-hd-main ---------- */
@media (min-width: 992px) {
    #header .header-nav { padding-top: 20px; padding-bottom: 20px; }
    /* Trait sous l'en-tete : en haut du menu (repi_topbars), qui remonte de
       quelques px et recouvrirait une bordure basse de .header-nav. */
    #header .repi-main-menu { border-top: 1px solid #E8ECF2; }
    /* !important : un front.css de module force max-width 1450px !important. */
    #header .header-nav > .container { width: 100%; max-width: 1400px !important; padding-left: 24px; padding-right: 24px; }
    #header .header-nav .header-complet { margin-left: 0; margin-right: 0; }
    #header .header-nav .header-complet > .hidden-md-down { gap: 40px; min-height: 56px; }
    #header .header-nav .header-complet > .hidden-md-down > div { float: none; width: auto; max-width: none; padding-left: 0; padding-right: 0; }
    #header .header-nav #_desktop_logo { flex: 0 0 auto; }
    #header .header-nav #_desktop_logo img { display: block; width: 200px; height: auto; }
    #header .header-nav .header-complet > .hidden-md-down > .header-top-right { flex: 1 1 auto; min-width: 0; }
    #header .header-nav .header-complet > .hidden-md-down > .right-nav { flex: 0 0 auto; }
    #header .header-nav #search_widget { width: 100%; }
    /* repi-product-page.css force max-width 700px !important. */
    #header .header-nav #search_widget .search-container { width: 100%; max-width: none !important; }
}

/* ---------- Correctifs 30/10/2026 ----------
   "#header a { color: #232323 }" (theme.css) l'emportait sur les liens des
   menus (noir au lieu du bleu de la maquette) ; "#header .header-nav
   .cart-preview.active a" passait l'icone panier en BLANC des qu'un article
   est au panier. */
#header .rp-hda .rp-hda-pop--account a,
#header .rp-hda .rp-hda-pop--account a:hover { color: #0B1E3D; line-height: normal; }
#header .rp-hda .rp-hda-notif { color: #163C5D; }
#header .rp-hda .rp-hda-notif.is-unread { color: #0B1E3D; }
#header .rp-hda .rp-hda-notif-all, #header .rp-hda .rp-hda-notif-all:hover { color: #1B8EF8; }
#header .header-nav #_desktop_cart .cart-preview .rp-hdc-act,
#header .header-nav #_desktop_cart .cart-preview.active .rp-hdc-act,
#header .header-nav #_desktop_cart .cart-preview.active .rp-hdc-act:hover { color: #0B1E3D; }
/* Barre du haut : Aide / telephone soulignes au survol (maquette). */
#header .top-header.rp-tb .rp-tb-left a:hover,
#header .top-header.rp-tb .rp-tb-left a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* 30/10/2026 (3) : "Mon garage" au survol = fond blanc, texte bleu ;
   "Voir toutes les notifications" souligne au survol. */
#header .top-header.rp-tb .rp-tb-pill:hover, #header .top-header.rp-tb .rp-tb-pill:focus-visible { background: #FFFFFF; border-color: #FFFFFF; color: #0B1E3D; }
#header .rp-hda .rp-hda-notif-all:hover, #header .rp-hda .rp-hda-notif-all:focus-visible { color: #1B8EF8; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Volet panier (leofeature drop_down.tpl), maquette rp-hd-cart (30/10/2026) ----------
   Surcharge de themes/repiauto/modules/leofeature/views/css/front.css (beaucoup
   de !important, d'ou le prefixe #_desktop_cart et quelques !important). */
#_desktop_cart .leo-dropdown-cart .cart-header-title { font-size: 16px; font-weight: 500; color: #0B1E3D; }
#_desktop_cart .leo-dropdown-cart .cart-count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #D71F1F; color: #FFFFFF;
    font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
}
#_desktop_cart .leo-dropdown-cart .cart-close {
    width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #EEF2F7; color: #0B1E3D;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
#_desktop_cart .leo-dropdown-cart .cart-close:hover { background: #DCE4EE; color: #0B1E3D; }
#_desktop_cart .leo-dropdown-cart .empty-cart-text { color: #0B1E3D; }
#_desktop_cart .leo-dropdown-cart .empty-cart-subtext { color: #163C5D; }
/* Articles */
#_desktop_cart .leo-dropdown-cart a.cart-product-title,
#_desktop_cart .leo-dropdown-cart a.cart-product-title:focus,
#_desktop_cart .leo-dropdown-cart a.cart-product-title:visited { font-size: 13px !important; font-weight: 500 !important; line-height: 1.4 !important; color: #0B1E3D !important; }
#_desktop_cart .leo-dropdown-cart a.cart-product-title:hover { color: #D71F1F !important; }
/* 17/11/2026 : reference = meme badge que la page produit (.ref-tag.ref-tag-ra, repi-product-page.css). */
#_desktop_cart .leo-dropdown-cart .cart-item-ref { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.4; color: #1B8EF8; background: #E8F3FF; border-radius: 6px; padding: 4px 10px; text-transform: uppercase; }
#_desktop_cart .leo-dropdown-cart .current-price .price { font-size: 14px; font-weight: 500; color: #0B1E3D; }
#_desktop_cart .leo-dropdown-cart .tax-product, #_desktop_cart .leo-dropdown-cart .tax-product-total { margin-left: 4px; font-size: 11px; font-weight: 600; color: #163C5D; }
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart { color: #163C5D; }
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart:hover { color: #D71F1F; }
/* Totaux */
#_desktop_cart .leo-dropdown-cart .cart-subtotal-row .label,
#_desktop_cart .leo-dropdown-cart .cart-subtotal-row .value { font-size: 12px !important; font-weight: 400 !important; color: #163C5D !important; }
#_desktop_cart .leo-dropdown-cart .leo-dropdown-cart-total .label { font-size: 14px !important; font-weight: 600 !important; color: #0B1E3D !important; }
#_desktop_cart .leo-dropdown-cart .leo-dropdown-cart-total .value { font-size: 18px !important; font-weight: 600 !important; color: #0B1E3D !important; }
/* CTA arrondi + "Continuer mes achats" */
#_desktop_cart .leo-dropdown-cart .leo-cart-dropdown-action a.cart-dropdow-button {
    min-height: 46px; padding: 0 24px !important; border-radius: 999px !important;
    background: #D71F1F !important; background-color: #D71F1F !important; font-size: 14px !important; font-weight: 500 !important;
}
#_desktop_cart .leo-dropdown-cart .leo-cart-dropdown-action a.cart-dropdow-button:hover { background: #B81919 !important; background-color: #B81919 !important; }
#_desktop_cart .leo-dropdown-cart .leo-cart-dropdown-action a.cart-dropdow-button:hover svg { transform: translateX(4px); }
#_desktop_cart .leo-dropdown-cart .leo-cart-dropdown-action .continue-shopping {
    display: block; width: auto; margin: 12px auto 0; padding: 4px 8px;
    font-size: 12px; font-weight: 500; color: #0B1E3D; text-decoration: underline; text-underline-offset: 3px;
}
#_desktop_cart .leo-dropdown-cart .leo-cart-dropdown-action .continue-shopping:hover,
#_desktop_cart .leo-dropdown-cart .leo-cart-dropdown-action .continue-shopping:focus-visible { color: #D71F1F; }
/* Volet panier, articles (30/10/2026, comparaison avec 2 produits) :
   espacements, image encadree 56 px, quantite en pilule, croix lisible. */
#_desktop_cart .leo-dropdown-cart .leo-header-dropdown { padding: 16px 20px; border-bottom: 1px solid #E8ECF2; align-items: center; }
#_desktop_cart .leo-dropdown-cart .leo-dropdown-list-item { padding: 4px 20px; }
#_desktop_cart .leo-dropdown-cart .leo-dropdown-cart-item { position: relative; gap: 0 12px; padding: 14px 24px 14px 0; border-bottom: 1px solid #E8ECF2; }
#_desktop_cart .leo-dropdown-cart .leo-cart-item-img {
    width: 56px; height: 56px; flex: 0 0 56px; border: 1px solid #E8ECF2; border-radius: 10px; background: #FFFFFF;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
#_desktop_cart .leo-dropdown-cart .leo-cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
#_desktop_cart .leo-dropdown-cart .leo-cart-item-info .footer-item-product { align-items: center; margin-top: 10px; }
#_desktop_cart .leo-dropdown-cart .product-quantity {
    display: flex !important; align-items: center; height: 28px; padding: 0; overflow: hidden;
    border: 1px solid #D5DCE6 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important;
}
#_desktop_cart .leo-dropdown-cart .product-quantity .leo-input-product-quantity {
    width: 18px !important; min-width: 18px; height: 26px !important; padding: 0 !important; border: 0 !important;
    background: transparent !important; box-shadow: none !important; text-align: center;
    font-size: 13px !important; font-weight: 500 !important; color: #0B1E3D !important;
}
#_desktop_cart .leo-dropdown-cart .product-quantity .leo-bt-product-quantity {
    width: 28px !important; height: 26px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: transparent !important; box-shadow: none !important; display: flex !important; align-items: center; justify-content: center;
    font-size: 14px !important; line-height: 1 !important; color: #0B1E3D !important; text-decoration: none !important;
}
#_desktop_cart .leo-dropdown-cart .product-quantity .leo-bt-product-quantity:hover { color: #D71F1F !important; }
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart { top: 14px; right: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart,
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart .remove-icon { color: #163C5D !important; opacity: 1 !important; font-size: 13px; }
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart:hover,
#_desktop_cart .leo-dropdown-cart .leo-remove-from-cart:hover .remove-icon { color: #D71F1F !important; }
#_desktop_cart .leo-dropdown-cart .leo-dropdown-bottom { padding: 16px 20px 20px; border-top: 1px solid #E8ECF2; }
/* Panier NON VIDE : "#header .header-nav .cart-preview.active a { margin-left:10px
   !important }" (repi-product-page.css) elargissait le bouton -> 16 px entre
   Alertes et le panier au lieu de 6. */
#header .header-nav #_desktop_cart .cart-preview.active .rp-hdc-act { margin-left: 0 !important; }
/* Volet panier : largeur maquette (380 px au lieu de 420, desktop) ; "TTC"
   des articles en graisse normale (le total reste en 600). */
@media (min-width: 992px) {
    #_desktop_cart .leo-dropdown-cart.dropdown { width: 380px !important; max-width: 100%; }
}
#_desktop_cart .leo-dropdown-cart .tax-product { font-weight: 400; }

/* ---------- Ligne mobile (< 992 px) : burger / logo a gauche / compte, cloche, panier ----------
   Repiauto 17/11/2026 (maquette « Header Repiauto », vue mobile). Le theme place
   #_mobile_logo en position absolue sur toute la largeur, logo centre : les
   icones compte / alertes / panier passaient par-dessus le logo. Ligne en flex :
   burger 44 px, logo centre dans l'espace entre le burger et le premier
   rp-hda-item (8 px de marge de chaque cote), icones 44 px a droite.
   !important : regles du theme (theme.css, .text-sm-center, float-xs-*) plus
   specifiques ou deja en !important. Barre du haut sur une ligne (ellipse). */
@media (max-width: 991px) {
    #header .header-nav .header-complet > .mobile { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 0; min-height: 56px; padding: 0 !important; }
    #header .header-nav .header-complet > .mobile #menu-icon { float: none !important; flex: 0 0 44px; width: 44px; height: 44px; padding: 0 !important; margin: 0 0 0 -6px !important; display: flex !important; align-items: center; justify-content: center; }
    #header .header-nav .header-complet > .mobile #menu-icon i { margin: 0 !important; line-height: 1; }
    #header .header-nav .header-complet > .mobile #_mobile_logo { position: static !important; flex: 1 1 auto; min-width: 0; width: auto !important; height: auto; display: flex !important; align-items: center; justify-content: center !important; text-align: center !important; padding: 0 8px !important; margin: 0 !important; }
    /* 17/11/2026 : logo mobile = logo principal sans baseline (views/img/
       logo-header-mobile.png : recadre, 480 x 56, fond transparent) affiche en
       fond du lien. L'<img> du theme reste dans la page (alt, SEO) mais masque. */
    #header .header-nav .header-complet > .mobile #_mobile_logo a { position: relative; display: block; width: 136px; max-width: 100%; height: 16px; line-height: 0; margin: 0 !important; background: url(../img/logo-header-mobile.png?v=20261117) left center / contain no-repeat; }
    #header .header-nav .header-complet > .mobile #_mobile_logo img { position: absolute !important; top: 0; left: 0; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0; overflow: hidden; pointer-events: none; }
    #header .header-nav .header-complet > .mobile .mobil_user_icons { float: none !important; flex: 0 0 auto; width: auto !important; margin: 0 -6px 0 auto !important; padding: 0 !important; display: flex !important; align-items: center; gap: 0; }
    #header .top-header.rp-tb .rp-tb-center,
    #header .top-header.rp-tb .rp-tb-center .rp-tb-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
