/* fidelite-16.css - ecarts de fidelite a la 1.6 sur le front public hors tunnel (10/11/2026).
   Charge apres autoload.css (templates/_partials/stylesheets.tpl). Ne touche ni le tunnel ni les adresses. */

/* Fiche produit : champ quantite sans bordure (1.6 : fond blanc, pas de cadre ; +2 px de hauteur sinon) */
#product #quantity_wanted, #quantity_wanted { border: 0 !important; box-shadow: none !important; }

/* Recherche sans resultat : bandeau a la 1.6 (marges 60 px, coins 12 px) */
body#search p.alert.alert-warning, body#new-products p.alert.alert-warning, body#best-sales p.alert.alert-warning, body#prices-drop p.alert.alert-warning { position: absolute; margin: 0 60px; border-radius: 12px; line-height: normal; }

/* Creation de compte (page /inscription) : boite grise, libelles au-dessus des champs, bouton bordeaux (1.6 : #account-creation_form) */
body#registration .account_creation.box { background: #f1f1f1; padding: 10px 20px 20px; margin: 0 0 30px; border: 0; border-radius: 0; box-shadow: none; }
body#registration .account_creation h3.page-subheading { margin: 18px 0 15px; padding: 0 0 15px; border: 0; }
body#registration .account_creation p.required { color: #f13340; font-size: 14px; margin: 9px 0 16px; }
body#registration .account_creation p.required sup { font-size: 10px; }
body#registration .account_creation .cdv-deja { font-size: 14px; margin: 0 0 14px; }
body#registration .register-form .form-group.row { margin: 0 0 4px; }
body#registration .register-form .form-group.row > [class*="col-md-"] { float: none; width: 100%; padding: 0; text-align: left; }
body#registration .register-form .form-control-label { display: block; margin: 12px 0 5px; padding: 0; font-weight: 700; font-size: 18px; color: #4e1115; text-align: left; }
body#registration .register-form .form-control-label.required:before { content: none; }
body#registration .register-form .form-control-label.required:after { content: "*"; font-size: 11px; vertical-align: super; margin-left: 3px; color: #4e1115; }
body#registration .register-form .form-control { max-width: 271px; height: 41px; padding: 10px 20px; border: 1px solid #b9b0a6; border-radius: 10px; background: #fff; color: #7c7c7c; font-size: 15px; box-shadow: none; }
body#registration .register-form .input-group { max-width: 271px; display: table; }
body#registration .register-form .input-group .form-control { max-width: none; width: 100%; }
body#registration .register-form .input-group-btn .btn { height: 41px; border: 0; background: #cbc3b9; color: #4e1115; border-radius: 0 10px 10px 0; font-size: 13px; }
body#registration .register-form .form-control-comment, body#registration .register-form span.form-control-comment { display: block; font-size: 12px; color: #777; margin-top: 4px; }
body#registration .register-form div.col-md-3.form-control-comment:empty { display: none; }
body#registration .register-form .custom-checkbox label, body#registration .register-form .radio-inline { font-size: 14px; color: #777; font-weight: 400; }
body#registration .register-form .custom-checkbox em { display: block; font-size: 12px; color: #777; font-style: normal; margin-top: 4px; }
body#registration .register-form .form-footer { padding: 20px 0 0; }
body#registration .register-form .form-footer .btn.btn-primary { float: left; background: #4e1115; color: #fff; border: 0; border-radius: 5px; padding: 10px 20px; font-size: 18px; font-weight: 400; text-transform: none; }
body#registration .register-form .form-footer .btn.btn-primary:hover { background: #6d1f2a; }
/* inscription : surcharges de specificite (le CSS de PS 9 / bootstrap 1.6 gagne sinon) */
body#registration #customer-form .form-control { max-width: 271px !important; width: 100% !important; height: 41px !important; border: 1px solid #b9b0a6 !important; border-radius: 10px !important; box-shadow: none; background: #fff !important; color: #7c7c7c !important; font-size: 15px !important; padding: 10px 20px !important; }
body#registration #customer-form .input-group { display: block; max-width: 271px; position: relative; }
body#registration #customer-form .input-group .form-control { max-width: none !important; }
body#registration #customer-form .input-group-btn { position: absolute; right: 0; top: 0; width: auto; }
body#registration #customer-form .input-group-btn .btn { height: 41px; padding: 0 12px; }
body#registration #customer-form span.form-control-comment, body#registration #customer-form div.form-control-comment { display: none; }
body#registration #customer-form label[for="field-id_gender"] { font-size: 14px; margin: 12px 0 0; }
body#registration #customer-form .radio-inline { font-size: 18px; font-weight: 700; color: #4e1115; margin: 6px 14px 0 0; padding: 0; }
body#registration #customer-form .custom-checkbox label { font-size: 18px; color: #777; }
body#registration #customer-form .form-control-label { font-size: 18px !important; font-weight: 700 !important; color: #4e1115 !important; }
body#registration #customer-form label[for="field-id_gender"] { font-size: 14px !important; }
body#registration #customer-form .form-control-comment { display: none !important; }
body#registration #customer-form .input-group-btn .btn { border-radius: 0 10px 10px 0 !important; background: #cbc3b9 !important; border: 0 !important; }
/* listes meilleures ventes / nouveaux produits / promotions : pas de ligne appellation sous le nom (1.6) */
body#best-sales .h6list, body#new-products .h6list, body#prices-drop .h6list { display: none; }
body#registration #customer-form label[for="field-birthday"] { font-size: 14px !important; }
body#registration #customer-form .form-footer .btn.btn-primary { font-size: 0 !important; padding: 10px 20px !important; min-width: 153px; height: 62px; float: left; text-transform: none; }
body#registration #customer-form .form-footer .btn.btn-primary:after { content: "S'inscrire"; font-size: 18px; font-weight: 400; font-family: "Fira Sans", sans-serif; color: #fff; }
/* Panier (/panier) : vignette produit 98 x 98 comme la 1.6 (small_default) ; le gabarit la bornait a 80 px */
#cart_summary td.cart_product img { width: 98px; height: 98px; }
#cart_voucher .button-small span, .cart_voucher .button-small span { text-transform: lowercase; }
body#registration #customer-form .form-group.row { margin-bottom: 7px !important; }
/* Mobile : le bouton menu de l'en-tete depassait de 4 px (379 px pour 375) et creait un defilement horizontal ; l'icone ne bouge pas */
@media (max-width: 767px) { body .sf-contener .cat-title, body .cat-title { padding-right: 16px !important; } }
/* Filtre Prix : visible comme en 1.6 (le JS 1.6 l'affichait) ; branche sur le filtre de prix de PS 9 par assets/js/fidelite-16.js */
#layered_block_left .layered_price { display: block !important; }
/* Mot de passe oublie / reinitialisation : champs a la 1.6 (blanc, sans bordure, coins 10 px) */
body#password .box .form-control { height: 41px; padding: 10px 20px; border: 0; border-radius: 10px; background: #fff; color: #7c7c7c; font-size: 15px; line-height: 21.4286px; box-shadow: none; max-width: 271px; }
/* 404 : pas de bandeau d'erreur PS 9 ("Cette categorie n'est plus disponible") au-dessus de la page introuvable, comme la 1.6 */
body#pagenotfound .ps-alert-error, body#pagenotfound .notifications-container { display: none; }
/* Fiche produit en rupture : pas de quantite ni de bouton "Ajouter au panier" (le JS 1.6 les masquait ; ici le statut est dans le HTML) */
#buy_block:has(#availability_value.label-danger) #quantity_wanted_p, #buy_block:has(#availability_value.label-danger) #add_to_cart { display: none !important; }

/* Formulaire de contact (10/11/2026) : bordures visibles sur les champs (input, select, textarea), focus bordeaux */
body#contact .contact-form-box input.form-control,
body#contact .contact-form-box textarea.form-control,
body#contact .contact-form-box select.form-control {
    border: 1px solid #b9b0a6;
    border-radius: 6px;
    background-color: #fff;
    padding: 8px 12px;
    box-shadow: none;
    color: #333;
}
body#contact .contact-form-box div.selector {
    border: 1px solid #b9b0a6;
    border-radius: 6px;
    background-color: #fff;
}
body#contact .contact-form-box div.selector select.form-control { border: 0; background: transparent; }
body#contact .contact-form-box textarea.form-control { min-height: 140px; width: 100%; max-width: 100%; }
body#contact .contact-form-box input.form-control:focus,
body#contact .contact-form-box textarea.form-control:focus,
body#contact .contact-form-box select.form-control:focus {
    border-color: #4e1115;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(78, 17, 21, 0.15);
}

/* Barre de tri / nombre par page des listes (categories, recherche) (10/11/2026) : une seule ligne alignee, select assez large, polices coherentes */
.content_sortPagiBar::before, .content_sortPagiBar::after, .content_sortPagiBar .sortPagiBar::before, .content_sortPagiBar .sortPagiBar::after { display: none !important; content: none !important; }
.content_sortPagiBar { display: flex !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; margin: 18px 0 14px; }
.content_sortPagiBar .sortPagiBar { display: flex !important; align-items: center; justify-content: space-between; flex: 1 1 100%; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; float: none !important; width: 100% !important; }
.content_sortPagiBar #productsSortForm, .content_sortPagiBar form.nbrItemPage { float: none !important; margin: 0 !important; padding: 0 !important; width: auto !important; display: block !important; }
.content_sortPagiBar #productsSortForm .select, .content_sortPagiBar form.nbrItemPage .selector1 { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; float: none !important; width: auto !important; }
.content_sortPagiBar label, .content_sortPagiBar form.nbrItemPage span { font: 400 14px/1.2 "Fira Sans", sans-serif !important; color: #6b625b; margin: 0 !important; padding: 0 !important; float: none !important; white-space: nowrap; text-transform: none; width: auto !important; }
.content_sortPagiBar #productsSortForm label { font-weight: 600 !important; color: #4e1115; order: 2; }
.content_sortPagiBar #productsSortForm .selector { order: 1; }
.content_sortPagiBar select.form-control, .content_sortPagiBar select { height: 38px; min-width: 240px; padding: 0 34px 0 12px; font: 400 14px/38px "Fira Sans", sans-serif; color: #333; border: 1px solid #b9b0a6; border-radius: 6px; background-color: #fff; }
.content_sortPagiBar #nb_page_items { min-width: 78px; }
.content_sortPagiBar div.selector { width: auto !important; min-width: 0; height: 38px; float: none !important; margin: 0 !important; background: transparent !important; border: 0; box-shadow: none; position: relative; }
.content_sortPagiBar div.selector span { width: auto !important; max-width: none; height: 38px; line-height: 38px; padding: 0 34px 0 12px !important; font: 400 14px/38px "Fira Sans", sans-serif !important; color: #333; background-color: #fff; border: 1px solid #b9b0a6; border-radius: 6px; text-overflow: clip; white-space: nowrap; overflow: visible; float: none !important; display: block; }
.content_sortPagiBar div.selector select { width: 100% !important; min-width: 0; height: 38px; }
.content_sortPagiBar #productsSortForm div.selector { min-width: 240px; }
.content_sortPagiBar #nb_page_items ~ span { color: #6b625b; }
.content_sortPagiBar select:focus { border-color: #4e1115; outline: 0; box-shadow: 0 0 0 2px rgba(78, 17, 21, 0.15); }
.top-pagination-content { margin: 6px 0 12px; }
@media (max-width: 767px) {
    .content_sortPagiBar { gap: 10px; }
    .content_sortPagiBar .sortPagiBar { gap: 10px; }
    .content_sortPagiBar #productsSortForm, .content_sortPagiBar form.nbrItemPage, .content_sortPagiBar #productsSortForm .select { width: 100% !important; }
    .content_sortPagiBar select.form-control, .content_sortPagiBar select, .content_sortPagiBar div.selector, .content_sortPagiBar #productsSortForm div.selector { min-width: 0; width: 100% !important; flex: 1 1 auto; }
}

/* Navigation a facettes (filtres des categories et de la recherche) (10/11/2026) : champs et cases visibles */
#layered_block_left .layered_price .nomargin > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
#layered_block_left .layered_price .nomargin > div > label { flex: 0 0 100%; }
#layered_block_left .layered_price input.layered_price_range {
    flex: 1 1 0; width: auto; min-width: 0; max-width: calc(100% - 20px); height: 40px; padding: 0 10px;
    background: #fff; border: 1px solid #b9b0a6; border-radius: 6px; box-shadow: none; color: #333;
    font: 400 14px/40px "Fira Sans", sans-serif;
}
#layered_block_left .layered_price input.layered_price_range:focus { border-color: #4e1115; outline: 0; box-shadow: 0 0 0 2px rgba(78, 17, 21, 0.15); }
#layered_block_left .layered_price .layered_price_range_unit { float: none; margin: 0; color: #4e1115; font: 400 14px/1 "Fira Sans", sans-serif; }
#layered_block_left div.checker, #layered_block_left div.radio { width: 20px; height: 20px; margin: 0 10px 0 0; float: left; position: relative; }
#layered_block_left div.checker span, #layered_block_left div.radio span {
    display: block; width: 20px; height: 20px; box-sizing: border-box; margin: 0; padding: 0;
    background: #fff !important; border: 1.5px solid #8f857b; border-radius: 4px;
}
#layered_block_left div.radio span { border-radius: 50%; }
#layered_block_left div.checker span.checked, #layered_block_left div.radio span.checked {
    background: #4e1115 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px 12px no-repeat !important;
    border-color: #4e1115;
}
#layered_block_left div.checker span:hover, #layered_block_left div.radio span:hover { border-color: #4e1115; }
#layered_block_left div.checker.focus span { box-shadow: 0 0 0 2px rgba(78, 17, 21, 0.2); }
#layered_block_left div.checker input, #layered_block_left div.radio input { opacity: 0; }
#layered_block_left li label { cursor: pointer; }
/* Facettes : la 1re case de chaque groupe ne doit plus etre coupee (ul en overflow auto + span decale par le plugin uniform) */
#layered_block_left ul.layered_filter_ul { padding-top: 4px; padding-bottom: 4px; }
#layered_block_left div.checker span, #layered_block_left div.radio span { top: 0 !important; left: 0 !important; margin-top: 0 !important; }

/* Champs de formulaire visibles sur tout le site (10/11/2026) : connexion, inscription, mot de passe oublie, fiche produit (quantite), magasins, newsletter.
   Contour par ombre interne : aucune variation de mise en page (le champ garde exactement ses dimensions 1.6). Hors page contact (bordure propre), hors facettes (bordure propre), hors barre de recherche de l'en-tete. */
body:not(#contact) #center_column input[type="text"],
body:not(#contact) #center_column input[type="email"],
body:not(#contact) #center_column input[type="password"],
body:not(#contact) #center_column input[type="number"],
body:not(#contact) #center_column input[type="tel"],
body:not(#contact) #center_column input[type="search"],
body:not(#contact) #center_column textarea,
body:not(#contact) #center_column select.form-control,
#footer input.newsletter-input, #footer input#newsletter-input, #addressInput {
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #b9b0a6;
    border-radius: 6px;
}
body:not(#contact) #center_column input[type="text"]:focus,
body:not(#contact) #center_column input[type="email"]:focus,
body:not(#contact) #center_column input[type="password"]:focus,
body:not(#contact) #center_column input[type="number"]:focus,
body:not(#contact) #center_column input[type="tel"]:focus,
body:not(#contact) #center_column input[type="search"]:focus,
body:not(#contact) #center_column textarea:focus,
body:not(#contact) #center_column select.form-control:focus,
#footer input.newsletter-input:focus, #footer input#newsletter-input:focus, #addressInput:focus {
    box-shadow: inset 0 0 0 2px #4e1115;
    outline: 0;
}
/* Fiche produit : champ quantite avec contour (surcharge de la regle d'identifiant) */
#buy_block #quantity_wanted_p #quantity_wanted, #quantity_wanted { box-shadow: inset 0 0 0 1px #b9b0a6 !important; border-radius: 6px; }
#buy_block #quantity_wanted_p #quantity_wanted:focus, #quantity_wanted:focus { box-shadow: inset 0 0 0 2px #4e1115 !important; }
/* Champs : couvre aussi les pages dont le contenu n'est pas dans #center_column (inscription, compte) */
body:not(#contact) #columns input[type="text"]:not(.layered_price_range):not(.search_query),
body:not(#contact) #columns input[type="email"],
body:not(#contact) #columns input[type="password"],
body:not(#contact) #columns input[type="number"],
body:not(#contact) #columns input[type="tel"],
body:not(#contact) #columns textarea {
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #b9b0a6;
    border-radius: 6px;
}
body:not(#contact) #columns input[type="text"]:not(.layered_price_range):not(.search_query):focus,
body:not(#contact) #columns input[type="email"]:focus,
body:not(#contact) #columns input[type="password"]:focus,
body:not(#contact) #columns input[type="number"]:focus,
body:not(#contact) #columns input[type="tel"]:focus,
body:not(#contact) #columns textarea:focus { box-shadow: inset 0 0 0 2px #4e1115; outline: 0; }
body:not(#contact) #columns .input-group input.form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }

body#registration .register-form .form-control:focus { border-color: #4e1115; outline: 0; }

body#registration #customer-form .form-control:focus { border-color: #4e1115 !important; outline: 0; }
