/* Repiauto 04/11/2026 — Listes produit : cloche "M'alerter du retour en
   stock" a la place du bouton panier des pieces en rupture.

   Le bouton garde les classes du bouton panier (.btn-brand.btn-square
   .add-to-cart) : meme taille, memes marges dans les vues liste, grille et
   mobile. Seuls la couleur et l'icone changent. !important sur le fond : les
   regles du theme sur .add-to-cart (vert) et .btn-outofstock (rouge) sont
   tres specifiques.

   Couleurs en litteral (les variables de la charte n'existent que sous
   .ra-account) ; memes valeurs que la cloche de la fiche produit
   (views/css/product.css) : bleu #163C5D au repos ; etat actif aligne sur
   la fiche produit (voir plus bas). */

.btn-brand.add-to-cart.repi-sa-list-btn,
.qv-btn-add-to-cart.repi-sa-qv {
    background: #163C5D !important;
    border-color: #163C5D !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.btn-brand.add-to-cart.repi-sa-list-btn:hover,
.qv-btn-add-to-cart.repi-sa-qv:hover {
    background: #0B1E3D !important;
    border-color: #0B1E3D !important;
}
/* Repiauto 09/11/2026 : alerte ACTIVE = meme design que le bouton de la
   fiche produit (views/css/product.css, .add-to-cart-btn.repi-sa-cta.is-on) :
   fond #EEF2F7, contour #C8D5E0, texte/cloche #163C5D, cloche pleine, pas
   d'inclinaison ; survol #DCE3EC / #B8C4D2. Plus de vert ni de rouge. */
.btn-brand.add-to-cart.repi-sa-list-btn.is-on,
.qv-btn-add-to-cart.repi-sa-qv.is-on {
    background: #EEF2F7 !important;
    border: 1px solid #C8D5E0 !important;
    color: #163C5D !important;
    box-shadow: none !important;
}
.btn-brand.add-to-cart.repi-sa-list-btn.is-on:hover,
.btn-brand.add-to-cart.repi-sa-list-btn.is-on:focus,
.qv-btn-add-to-cart.repi-sa-qv.is-on:hover,
.qv-btn-add-to-cart.repi-sa-qv.is-on:focus {
    background: #DCE3EC !important;
    border-color: #B8C4D2 !important;
    color: #163C5D !important;
}
.btn-brand.add-to-cart.repi-sa-list-btn.is-busy,
.qv-btn-add-to-cart.repi-sa-qv.is-busy {
    opacity: .6 !important;
    cursor: progress !important;
}

/* Icone : meme taille que le caddie (ceicon 19px en liste, 15px dans
   l'apercu rapide). */
.repi-sa-list-btn .repi-sa-bell {
    width: 19px;
    height: 19px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.qv-btn-add-to-cart.repi-sa-qv .repi-sa-bell {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}
/* Active : cloche pleine, comme sur la fiche (sans inclinaison). */
.repi-sa-list-btn.is-on .repi-sa-bell,
.repi-sa-qv.is-on .repi-sa-bell {
    fill: currentColor;
    stroke: currentColor;
}

/* Repiauto 16/11/2026 : fenetre de connexion visiteur (listing.js,
   showLoginModal) : au centre, fond assombri. Ajoutee a body ; z-index
   au-dessus de l'apercu rapide (modale Bootstrap 1050) et des bulles
   tierces. Charte : bleus #0B1E3D / #163C5D, CTA rouge #D71F1F (header). */
html.repi-sa-modal-open,
html.repi-sa-modal-open body {
    overflow: hidden;
}
.repi-sa-modal {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: inherit;
}
.repi-sa-modal-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(11, 30, 61, .6);
    animation: repiSaFade .15s ease-out;
}
.repi-sa-modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 28px 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(11, 30, 61, .3);
    text-align: center;
    animation: repiSaPop .18s ease-out;
}
@keyframes repiSaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes repiSaPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.repi-sa-modal .repi-sa-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F5F7FA;
    color: #163C5D;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
}
.repi-sa-modal .repi-sa-modal-x:hover { background: #E3EAF2; }
.repi-sa-modal-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #EEF2F7;
    color: #163C5D;
}
.repi-sa-modal-ico .repi-sa-bell { width: 24px; height: 24px; }
.repi-sa-modal .repi-sa-modal-title {
    margin: 0 0 6px;
    color: #0B1E3D;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.repi-sa-modal .repi-sa-modal-text {
    margin: 0 0 18px;
    color: #163C5D;
    font-size: 14px;
    line-height: 1.5;
}
.repi-sa-modal-form { margin: 0; text-align: left; }
.repi-sa-modal .repi-sa-modal-label {
    display: block;
    margin: 0 0 5px;
    color: #0B1E3D;
    font-size: 13px;
    font-weight: 500;
}
.repi-sa-modal .repi-sa-modal-input {
    display: block;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 0 14px;
    border: 1px solid #D5DCE6;
    border-radius: 10px;
    background: #fff;
    color: #0B1E3D;
    font-size: 16px;
    box-shadow: none;
}
.repi-sa-modal .repi-sa-modal-input:focus {
    outline: 0;
    border-color: #163C5D;
    box-shadow: 0 0 0 3px rgba(22, 60, 93, .15);
}
.repi-sa-modal-pass { position: relative; }
.repi-sa-modal-pass .repi-sa-modal-input { padding-right: 46px; }
.repi-sa-modal .repi-sa-modal-eye {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8A9BB0;
    cursor: pointer;
}
.repi-sa-modal .repi-sa-modal-eye.is-on,
.repi-sa-modal .repi-sa-modal-eye:hover { color: #163C5D; }
.repi-sa-modal .repi-sa-modal-eye svg { width: 20px; height: 20px; vertical-align: middle; }
.repi-sa-modal .repi-sa-modal-forgot {
    display: inline-block;
    margin: -6px 0 14px;
    color: #163C5D;
    font-size: 13px;
    text-decoration: underline;
}
.repi-sa-modal .repi-sa-modal-err {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #FDECEC;
    color: #B81919;
    font-size: 13px;
    line-height: 1.4;
}
.repi-sa-modal .repi-sa-modal-err[hidden] { display: none; }
.repi-sa-modal .repi-sa-modal-submit {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: #D71F1F;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
.repi-sa-modal .repi-sa-modal-submit:hover { background: #B81919; }
.repi-sa-modal .repi-sa-modal-submit:disabled { opacity: .75; cursor: wait; }
.repi-sa-modal .repi-sa-modal-submit.is-done { background: #163C5D; opacity: 1; }
.repi-sa-modal .repi-sa-modal-create {
    margin: 16px 0 0;
    color: #163C5D;
    font-size: 13px;
}
.repi-sa-modal .repi-sa-modal-create a {
    color: #0B1E3D;
    font-weight: 600;
    text-decoration: underline;
}
@media (max-width: 575px) {
    .repi-sa-modal-box { padding: 24px 18px 18px; }
}
