/* Barre AVA dans le menu, entre le dernier onglet et le panier (SAVA-09).
   01/12/2026 (Trello 4X4 #15, #56) : même effet que la barre d'Eskouade — capsule « verre » teintée,
   logo AVA, filet de lumière qui fait deux fois le tour du bord une fois par page, reflet irisé
   toutes les ~8 s, se soulève au survol, s'ouvre au clic (accroche → consigne). */
@property --sl-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
#menu .sl-barre-ava-place {
  flex: 0 1 360px;
  align-self: center;
  min-width: 0;
  margin-left: auto;
  padding-left: 16px;
  list-style: none;
  transition: flex-basis .35s cubic-bezier(.22, 1, .36, 1);
}
#menu .sl-barre-ava-place:focus-within { flex-basis: 420px; }
html.sl-ava-ouvert #menu .sl-barre-ava-place { display: none; }
.sl-barre-ava {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0;
  padding: 0 4px 0 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .94);
  background-image: linear-gradient(rgba(255, 107, 44, .07), rgba(255, 107, 44, .07));
  border: 1px solid rgba(255, 107, 44, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 .5px rgba(255, 255, 255, .28);
  cursor: text;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) { .sl-barre-ava:hover { transform: translateY(-1px); } }
.sl-barre-ava:focus-within,
.sl-barre-ava.is-armed {
  border-color: #ff6b2c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 .5px rgba(255, 255, 255, .28), 0 0 0 3px rgba(255, 107, 44, .16);
}
/* Filet de lumière : deux tours du bord, une fois par page, fondu d'entrée et de sortie. */
.sl-barre-ava::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: conic-gradient(from var(--sl-a), transparent 0 55%, #ffb38f 70%, #ff6b2c 80%, #ffe2d4 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sl-lumiere 7s linear 1 forwards;
}
@keyframes sl-lumiere {
  0% { --sl-a: 0deg; opacity: 0; }
  7% { opacity: 1; }
  86% { opacity: 1; }
  100% { --sl-a: 720deg; opacity: 0; }
}
/* Reflet irisé (sous le contenu, au-dessus du fond). */
.sl-barre-ava::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: .45;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 107, 44, .45) 38%, rgba(255, 90, 150, .35) 50%, rgba(255, 210, 120, .45) 62%, transparent 80%);
  background-size: 260% 100%;
  animation: sl-reflet 8s ease-in-out infinite;
}
@keyframes sl-reflet {
  0% { background-position: 120% 0; }
  55% { background-position: -20% 0; }
  100% { background-position: -20% 0; }
}
.sl-barre-ava__logo { display: block; flex: none; width: 26px; height: 26px; }
.sl-barre-ava input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  outline: none;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}
.sl-barre-ava input::placeholder { color: #6b6b6b; opacity: 1; font-weight: 400; text-overflow: ellipsis; }
.sl-barre-ava input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sl-barre-ava__envoyer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ff6b2c;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.sl-barre-ava__envoyer:hover { background: #f05a1a; }
.sl-barre-ava__envoyer:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .sl-barre-ava, #menu .sl-barre-ava-place { transition: none; }
  .sl-barre-ava::before, .sl-barre-ava::after { animation: none; }
}
/* Téléphone : la barre AVA remplace « Rechercher un produit » sous le logo (#56). */
.sl-barre-ava-haut { display: none; }
@media (max-width: 767px) {
  #_mobile_Search_top { display: none !important; }
  .sl-barre-ava-haut { display: block; clear: both; padding: 4px 15px 16px; }
  .sl-barre-ava--haut { height: 48px; padding: 0 5px 0 10px; background-color: #fff; }
  .sl-barre-ava--haut .sl-barre-ava__logo { width: 30px; height: 30px; }
  .sl-barre-ava--haut input { font-size: 16px; } /* 16 px : pas de zoom automatique d'iOS */
  .sl-barre-ava--haut .sl-barre-ava__envoyer { width: 38px; height: 38px; }
}
/* Ordinateur : une seule recherche, la barre AVA (la loupe du bandeau noir est retirée, #15). */
@media (min-width: 768px) {
  .displayNav2 .laberSearch-dropdown { display: none !important; }
  .displayNav2 .laberUser::before { display: none; } /* le trait qui séparait la loupe de « S'enregistrer » */
}
/* Pages catégorie : le bloc « Tags » ne sert à rien (#56). */
#tags_block_left { display: none !important; }
@media (min-width: 768px) {
  #menu.adtm_menu_list { flex-wrap: nowrap !important; }
  #menu .li-niveau1 { flex: 0 0 auto !important; width: auto !important; }
  #menu .a-niveau1 { white-space: nowrap; }
}
/* Écrans étroits : les onglets se resserrent pour laisser sa place à la barre. */
@media (min-width: 768px) and (max-width: 1339px) {
  #menu .a-niveau1,
  #menu .a-niveau1 * {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  #menu .sl-barre-ava-place { padding-left: 8px; }
}
/* Le thème déplace le menu dans le tiroir du téléphone : la barre n'y a pas sa place. */
@media (max-width: 767px) {
  #menu .sl-barre-ava-place { display: none; }
}

/* Le panneau AVA retire 400 px à la page : le menu reste sur une seule ligne. */
@media (min-width: 1240px) {
  html.sl-ava-ouvert #menu.adtm_menu_list { flex-wrap: nowrap !important; }
  html.sl-ava-ouvert #menu .li-niveau1 { flex: 0 1 auto !important; width: auto !important; min-width: 0; }
  html.sl-ava-ouvert #menu .a-niveau1,
  html.sl-ava-ouvert #menu .a-niveau1 * {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

/* Vitrine à gauche du chat (SAVA-10) */
.sl-vitrine {
  padding: 22px 15px 30px;
  background: #f1f2f6;
  border-bottom: 1px solid #e2e3e8;
}
.sl-vitrine__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sl-vitrine__titre {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #111;
}
.sl-vitrine__fermer {
  padding: 8px 14px;
  border: 1px solid #111;
  border-radius: 3px;
  background: transparent;
  color: #111;
  font-size: 13px;
  cursor: pointer;
}
.sl-vitrine__fermer:hover { background: #111; color: #fff; }
.sl-vitrine__grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.sl-vitrine__carte {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e3e8;
  color: #111;
  text-decoration: none;
}
.sl-vitrine__carte:hover { border-color: #fdb81e; color: #111; text-decoration: none; }
.sl-vitrine__image {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.sl-vitrine__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sl-vitrine__nom {
  flex: 1;
  font-size: 15px;
  line-height: 1.3;
}
.sl-vitrine__prix {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}
.sl-vitrine__cta {
  margin-top: 12px;
  padding: 9px 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.sl-vitrine__carte:hover .sl-vitrine__cta { background: #fdb81e; color: #111; }

/* ───── Panier (Trello 4X4 #37, 01/12/2026) ─────
   Mise en page aérée d'après la maquette d'Antoine : cartes arrondies, quantité « − 1 + », franco de
   port avec jauge en haut à droite, bouton Commander pleine largeur, réassurance SOUS le bouton. */
body#cart .card.cart-container,
body#cart .card.cart-summary {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 6px 24px rgba(17, 24, 39, .05);
}
body#cart .cart-container .card-block .h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; text-transform: none; }
body#cart .cart-container hr.separator { display: none; }
body#cart .cart-items { margin: 0; padding: 0 1.25rem 4px; }
body#cart .cart-item { padding: 18px 0; border-bottom: 1px solid #eef0f3; }
body#cart .cart-item:last-child { border-bottom: 0; }
body#cart .product-line-grid-left .product-image { display: block; padding: 6px; border-radius: 12px; background: #f6f7f9; }
body#cart .product-line-grid-left .product-image img { border-radius: 8px; mix-blend-mode: multiply; }
body#cart .product-line-info a.label { color: #111; font-size: 16px; font-weight: 700; line-height: 1.35; }
body#cart .product-line-info.product-price { margin-top: 4px; }
body#cart .product-line-info.product-price .current-price .price { color: #6b7280; font-size: 14px; font-weight: 500; }
body#cart .product-line-info.product-price .current-price .price::after { content: " l’unité"; }
body#cart .cart-item .bootstrap-touchspin {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 40px;
  border: 1px solid #e3e5e9;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
body#cart .cart-item .bootstrap-touchspin .input-group-btn-vertical { display: contents; }
body#cart .cart-item .bootstrap-touchspin .js-cart-line-product-quantity {
  order: 2;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #111;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
body#cart .cart-item .js-cart-line-product-quantity::-webkit-inner-spin-button,
body#cart .cart-item .js-cart-line-product-quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body#cart .cart-item .bootstrap-touchspin .btn-touchspin {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 0;
}
body#cart .cart-item .bootstrap-touchspin .btn-touchspin i { display: none; }
body#cart .cart-item .bootstrap-touchspin .bootstrap-touchspin-down { order: 1; }
body#cart .cart-item .bootstrap-touchspin .bootstrap-touchspin-up { order: 3; }
body#cart .cart-item .bootstrap-touchspin .bootstrap-touchspin-down::before { content: "−"; font-size: 20px; line-height: 1; }
body#cart .cart-item .bootstrap-touchspin .bootstrap-touchspin-up::before { content: "+"; font-size: 20px; line-height: 1; }
body#cart .cart-item .bootstrap-touchspin .btn-touchspin:hover { background: #f6f7f9; }
/* Quantité, prix et corbeille sur une ligne, sans chevauchement (la colonne du thème est trop étroite au téléphone). */
body#cart .cart-item .product-line-actions > .row { display: flex; align-items: center; }
body#cart .cart-item .product-line-actions > .row > .col-md-10 { flex: 1 1 auto; width: auto; max-width: none; }
body#cart .cart-item .product-line-actions > .row > .col-md-10 > .row { display: flex; align-items: center; gap: 14px; margin: 0; }
body#cart .cart-item .product-line-actions .qty,
body#cart .cart-item .product-line-actions .price { flex: none; float: none; width: auto; max-width: none; padding: 0; }
body#cart .cart-item .product-line-actions > .row > .col-md-2 { flex: none; width: auto; }
body#cart .cart-item .price .product-price strong { color: #111; font-size: 17px; font-weight: 800; white-space: nowrap; }
body#cart .cart-line-product-actions .remove-from-cart { color: #9ca3af; }
body#cart .cart-line-product-actions .remove-from-cart:hover { color: #111; }
body#cart .cart-grid-body > a.label { display: inline-flex; align-items: center; margin-top: 14px; color: #111; font-weight: 600; }

/* Colonne de droite : franco, montants, code promo, Commander, puis la réassurance. */
body#cart .card.cart-summary { display: flex; flex-direction: column; padding: 18px; }
body#cart .cart-summary > .cart-detailed-totals { display: contents; }
body#cart .cart-summary .sl4x4-franco { order: 1; }
body#cart .cart-summary .cart-detailed-totals > .card-block { order: 2; padding: 0; }
body#cart .cart-summary .cart-detailed-totals > .cart-summary-totals { order: 3; padding: 12px 0 4px; }
body#cart .cart-summary .block-promo { order: 4; margin: 2px 0 14px; }
body#cart .cart-summary .cart-detailed-actions { order: 5; padding: 0; }
body#cart .cart-summary .sl4x4-rassure { order: 6; }
body#cart .cart-summary .cart-summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}
body#cart .cart-summary .cart-summary-line .label,
body#cart .cart-summary .cart-summary-line .value { float: none; color: #374151; font-size: 15px; }
body#cart .cart-summary .cart-summary-line .label { flex: 1 1 auto; width: auto; }
body#cart .cart-summary .cart-summary-line .value { flex: 0 0 auto; width: auto; margin-left: auto; text-align: right; }
body#cart .cart-summary .cart-summary-line > div { flex-basis: 100%; }
body#cart .cart-summary .cart-summary-line > div:empty,
body#cart .cart-summary .cart-summary-line small.value:empty { display: none; }
body#cart .cart-summary .cart-total { padding: 6px 0; border-bottom: 0; }
body#cart .cart-summary .cart-total .label,
body#cart .cart-summary .cart-total .value { color: #111; font-size: 22px; font-weight: 800; }
body#cart .cart-summary .block-promo .promo-code-button { margin: 0; text-align: left; }
body#cart .cart-summary .block-promo a.collapse-button { color: #111; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body#cart .cart-summary .cart-detailed-actions .text-sm-center { text-align: center; }
body#cart .cart-summary .cart-detailed-actions .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #fdb81e;
  box-shadow: 0 8px 18px rgba(253, 184, 30, .35);
  color: #111;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body#cart .cart-summary .cart-detailed-actions .btn-primary::after { content: "→"; font-size: 20px; line-height: 1; }
body#cart .cart-summary .cart-detailed-actions .btn-primary:hover,
body#cart .cart-summary .cart-detailed-actions .btn-primary:focus { background: #f5a800; color: #111; }
body#cart .cart-summary .payplugOneyCta_wrapper { margin-top: 8px; }
.sl4x4-franco {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f7dc8e;
  border-radius: 12px;
  background: #fff7e0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
}
.sl4x4-franco p { margin: 0 0 8px; }
.sl4x4-franco small { color: #6b6b6b; font-size: 12px; }
.sl4x4-franco__barre { display: block; height: 6px; border-radius: 999px; background: #f3e6bf; overflow: hidden; }
.sl4x4-franco__barre > span { display: block; height: 100%; border-radius: inherit; background: #f2a900; }
.sl4x4-franco.is-atteint { border-color: #bfe5cc; background: #ecf8f0; color: #166534; }
.sl4x4-franco.is-atteint .sl4x4-franco__barre > span { background: #1e8a4a; }
.sl4x4-rassure {
  margin: 16px -18px -18px;
  padding: 12px 18px 14px;
  border-top: 1px solid #eef0f3;
  border-radius: 0 0 16px 16px;
  background: #fafbfc;
  list-style: none;
}
.sl4x4-rassure li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: #4b5563; font-size: 13.5px; line-height: 1.4; }
.sl4x4-rassure li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #111; }
.sl4x4-rassure strong { color: #111; }
.sl4x4-rassure a { color: #111; text-decoration: underline; text-underline-offset: 2px; }
