/* ============================================
   CUSTOM OVERRIDES
   Loaded after theme.css (Tailwind) and hummingbird-base.css
   to apply project-specific fixes and design tweaks.
   ============================================ */

.collapse.show { visibility: visible !important; }

/* Checkout Timeline Styles */
.checkout__steps__item.checkout__steps--current .checkout__steps__number,
.checkout__steps__item.checkout__steps--complete .checkout__steps__number {
  background-color: #1b4d3e !important;
  color: white !important;
}

.checkout__steps__item.checkout__steps--current .checkout__steps__text,
.checkout__steps__item.checkout__steps--complete .checkout__steps__text {
  color: #1b4d3e !important;
  font-weight: 600 !important;
}

.checkout__steps__item.checkout__steps--current:not(:last-child)::after,
.checkout__steps__item.checkout__steps--complete:not(:last-child)::after {
  background-color: #1b4d3e !important;
}

.checkout__steps__list.nav-tabs {
  border: none !important;
  justify-content: center;
  gap: 0;
}

.checkout__steps__item.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.checkout__steps__item.nav-item::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 50%;
  height: 2px;
  background-color: #d1d5db;
  z-index: 0;
}

.checkout__steps__item.nav-item::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  right: 0;
  height: 2px;
  background-color: #d1d5db;
  z-index: 0;
}

.checkout__steps__item.nav-item:first-child::before,
.checkout__steps__item.nav-item:last-child::after {
  display: none;
}

.checkout__steps__item.checkout__steps--current::before,
.checkout__steps__item.checkout__steps--complete::before,
.checkout__steps__item.checkout__steps--complete::after {
  background-color: #1b4d3e !important;
}

.checkout__steps__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #d1d5db;
  color: #6b7280;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 2;
  margin-bottom: 8px !important;
}

.checkout__steps__text.nav-link {
  font-size: 13px !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

.checkout__steps__item.checkout__steps--current .checkout__steps__text.nav-link,
.checkout__steps__item.checkout__steps--complete .checkout__steps__text.nav-link {
  color: #1b4d3e !important;
  font-weight: 600 !important;
}

/* Header Cart Buttons */
.cart-buttons .btn-ventes,
.cart-buttons .btn-achats,
a.btn-ventes,
a.btn-achats {
  background-color: #FFFFFF !important;
}

a.btn-ventes {
  border: 2px solid #DE383A !important;
  color: #DE383A !important;
}

a.btn-achats {
  border: 2px solid #2E996E !important;
  color: #2E996E !important;
}

/* Login/Register Page */
body#authentication #content-wrapper,
body#authentication #main {
  max-width: 100% !important;
  width: 100% !important;
}

body#authentication #main .page-content,
body#authentication #content-wrapper #main .page-content {
  max-width: 100% !important;
}

body#authentication .page-header {
  display: none !important;
}

body#authentication .form-control,
body#authentication input[type="email"],
body#authentication input[type="password"],
body#authentication input[type="text"] {
  width: 100% !important;
  max-width: 100% !important;
}

body#my-account #content-wrapper #main .page-content,
body.page-customer-account #content-wrapper #main .page-content {
  max-width: 100% !important;
}

.forgotten-password {
  max-width: 480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body#registration #content-wrapper #main .page-content .register-form,
body#registration .register-form {
  max-width: 540px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body#password #content-wrapper .page-header {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.forgotten-password + .page-footer,
.register-form + hr,
.register-form ~ .register-form__login-prompt {
  max-width: 540px !important;
  margin-left: auto !important;
}

/* Footer Sitemap */
.footer-sitemap-bg {
  opacity: 0.55 !important;
  filter: invert(1) brightness(2) !important;
}

#wrapper, main, .wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

body#authentication #wrapper,
body#authentication main,
body#authentication .wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

body#authentication .container {
  max-width: 100% !important;
  padding: 0 !important;
}

body#authentication .wrapper__content {
  max-width: 100% !important;
  width: 100% !important;
  flex: 0 0 100% !important;
}

#footer, .footer, footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body {
  background: #FFFFFF !important;
}

body#authentication {
  background: #F0EDE5 !important;
}

main#wrapper + footer,
.wrapper + .footer {
  margin-top: 0 !important;
}

#index main::after,
body.index main::after {
  display: none !important;
  margin-right: auto !important;
}

/* ============================================
   CLIENT FEEDBACK FIXES - Feb 2026
   ============================================ */

/* Bold table headers */
table th,
.product-table th,
.table thead th,
.cv-devises-table th {
  font-weight: 700 !important;
}

/* Round mask on flag images */
.cv-devises-table img,
.cv-currency-flag,
.currency-flag,
[class*="flag"] img,
.devises-section img[alt],
section img[src*="flag"],
section img[src*="flags"] {
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Gold hover effects on links */
a:hover,
.footer-sitemap a:hover,
footer a:hover,
.nav-link:hover {
  color: #C5A572 !important;
}

footer .text-white a:hover,
.footer-sitemap-content a:hover {
  color: #C5A572 !important;
}

/* Product miniature (category pages) */
.product-miniature img,
.product-miniature picture img {
  min-height: 180px;
  object-fit: contain;
}

/* Glide slider */
.bestsellers-section .glide__slide {
  height: auto !important;
}

/* Partner logos */
.partners-logos img,
.partners-section img,
[class*="partner"] img {
  object-fit: contain !important;
  max-height: 60px;
  width: auto !important;
  padding: 4px;
  overflow: visible !important;
}

/* Bold rachat table headers */
.rachat-header .rachat-cell {
  font-weight: 700 !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .cv-home-slider {
    overflow: hidden;
  }

  .footer-sitemap-content .flex-row {
    flex-direction: column;
  }

  .rachat-container {
    flex-direction: column !important;
    height: auto !important;
  }

  .rachat-left {
    width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    border-right: 1px solid #CCCCCC !important;
    border-bottom: none !important;
    height: auto !important;
  }

  .rachat-table {
    width: 100% !important;
    border-radius: 0 0 12px 12px !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================
   CHECKOUT — CHECKBOXES FORMULAIRE CLIENT
   Remplace le rendu "bouton-card" Bootstrap
   par des cases à cocher propres et alignées
   ============================================ */

/* Conteneur de chaque checkbox : flex row, fond neutre, pas de bordure-bouton */
#checkout-personal-information-step .form-check,
.cv-pi-tab-pane .form-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  background: #f9f8f5 !important;
  border: 1px solid #e5e1d8 !important;
  border-radius: 8px !important;
  min-height: unset !important;
}

/* Reset du float Bootstrap sur l'input */
#checkout-personal-information-step .form-check .form-check-input,
.cv-pi-tab-pane .form-check .form-check-input {
  float: none !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin-top: 2px !important;
  margin-left: 0 !important;
  cursor: pointer !important;
  accent-color: #1b4d3e !important;
  border-color: #9ca3af !important;
  border-radius: 4px !important;
}

/* Couleur de la case cochée */
#checkout-personal-information-step .form-check .form-check-input:checked,
.cv-pi-tab-pane .form-check .form-check-input:checked {
  background-color: #1b4d3e !important;
  border-color: #1b4d3e !important;
}

/* Label : pleine largeur, taille lisible */
#checkout-personal-information-step .form-check .form-check-label,
.cv-pi-tab-pane .form-check .form-check-label {
  flex: 1 !important;
  float: none !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #374151 !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Texte secondaire / italique dans le label */
#checkout-personal-information-step .form-check .form-check-label small,
#checkout-personal-information-step .form-check .form-check-label .fst-italic,
.cv-pi-tab-pane .form-check .form-check-label small,
.cv-pi-tab-pane .form-check .form-check-label .fst-italic {
  font-size: 12px !important;
  color: #6b7280 !important;
  display: block !important;
  margin-top: 1px !important;
}

/* Checkbox CGV obligatoire : légèrement mise en avant */
#checkout-personal-information-step .form-check:has(input[name="customer_privacy"]),
#checkout-personal-information-step .form-check:has(input[name="psgdpr"]),
.cv-pi-tab-pane .form-check:has(input[name="customer_privacy"]),
.cv-pi-tab-pane .form-check:has(input[name="psgdpr"]) {
  border-color: #1b4d3e !important;
  background: #f0f7f4 !important;
}

/* ============================================
   CHAMP MOT DE PASSE — bouton œil inline
   ============================================ */

#checkout-personal-information-step .input-group.password-field,
.cv-pi-tab-pane .input-group.password-field,
.js-customer-form .input-group.password-field {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
}

#checkout-personal-information-step .input-group.password-field .form-control,
.cv-pi-tab-pane .input-group.password-field .form-control,
.js-customer-form .input-group.password-field .form-control {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  border-radius: 6px 0 0 6px !important;
}

#checkout-personal-information-step .input-group.password-field .btn,
.cv-pi-tab-pane .input-group.password-field .btn,
.js-customer-form .input-group.password-field .btn {
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: 44px !important;
  border-radius: 0 6px 6px 0 !important;
  background-color: #1b4d3e !important;
  border-color: #1b4d3e !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
}

/* Bouton Continuer — séparation claire */
#checkout-personal-information-step .form-footer,
.cv-pi-tab-pane .form-footer {
  margin-top: 16px !important;
}

#checkout-personal-information-step .btn.continue,
.cv-pi-tab-pane .btn.continue,
#checkout-personal-information-step button[data-link-action="register-new-customer"],
.cv-pi-tab-pane button[data-link-action="register-new-customer"] {
  width: 100% !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background-color: #1b4d3e !important;
  border-color: #1b4d3e !important;
  color: #fff !important;
  border-radius: 8px !important;
}
