/* ============================================================
   CLASSIC CHILD THEME — custom.css
   Améliorations visuelles complètes
   PrestaShop 8.2.1+ | Bootstrap 4 alpha
   ============================================================ */

/* ─── 1. VARIABLES CSS ─────────────────────────────────────── */
:root {
  --primary:        #24b9d7;
  --primary-dark:   #1a8196;
  --primary-light:  #e6f7fb;
  --secondary:      #232323;
  --text-muted:     #7a7a7a;
  --bg-light:       #f6f6f6;
  --white:          #ffffff;
  --border:         rgba(0,0,0,.10);
  --shadow-sm:      0 2px 8px rgba(0,0,0,.07);
  --shadow-md:      0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.13);
  --radius:         8px;
  --radius-sm:      4px;
  --transition:     .22s ease;
  --font:           'Manrope', sans-serif;
}

/* ─── 2. BASE & TYPOGRAPHIE ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--secondary);
  background: #f4f5f7;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

a {
  color: var(--primary);
  transition: color var(--transition);
  text-decoration: none;
}
a:hover { color: var(--primary-dark); text-decoration: none; }

/* ─── 3. HEADER ─────────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.09);
  transition: box-shadow var(--transition);
}

#header .header-nav {
  max-height: 52px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

#header .header-nav .material-icons {
  line-height: 52px;
}

/* Logo */
#header .logo {
  max-height: 50px;
  width: auto;
  transition: opacity var(--transition);
}
#header .logo:hover { opacity: .85; }

/* Header top */
#header .header-top {
  padding: 1rem 0;
}

/* Panier icône */
#header .header-nav .blockcart {
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
#header .header-nav .blockcart:hover {
  background: var(--primary-light);
}
#header .header-nav .cart-preview.active {
  background: var(--primary);
  border-radius: var(--radius-sm);
}

/* ─── 4. NAVIGATION PRINCIPALE ──────────────────────────────── */
#top-menu .top-menu a[data-depth="0"] {
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .75rem .85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
#top-menu .top-menu a[data-depth="0"]:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown mega-menu */
.top-menu .sub-menu {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid #eee;
  border-top: 3px solid var(--primary);
}

/* ─── 5. BARRE DE RECHERCHE ─────────────────────────────────── */
.search-widget form {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-widget form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,185,215,.15);
  background: var(--white);
}
.search-widget form input[type=text] {
  background: transparent;
  border: 0;
  padding: .5rem 1.1rem;
  font-size: .9rem;
  min-width: 200px;
  outline: 0;
}
.search-widget form button[type=submit] {
  background: transparent;
  border: 0;
  padding: .5rem .9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.search-widget form button[type=submit]:hover {
  color: var(--primary);
}

/* ─── 6. BREADCRUMB ─────────────────────────────────────────── */
#wrapper .breadcrumb {
  background: transparent;
  padding: .5rem 0 .75rem;
  font-size: .8125rem;
}
#wrapper .breadcrumb li {
  color: var(--text-muted);
}
#wrapper .breadcrumb li::after {
  content: "›";
  margin: 0 .4rem;
  color: #ccc;
}
#wrapper .breadcrumb li a {
  color: var(--text-muted);
  font-weight: 500;
}
#wrapper .breadcrumb li a:hover { color: var(--primary); }
#wrapper .breadcrumb li:last-child { color: var(--secondary); font-weight: 600; }

/* ─── 7. BOUTONS ────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .02em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  border: 2px solid transparent;
  color: #fff;
  padding: .65rem 1.5rem;
  box-shadow: 0 3px 10px rgba(36,185,215,.25);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 5px 18px rgba(36,185,215,.35);
}

.btn-secondary {
  background: var(--bg-light);
  border: 1px solid #ddd;
  color: var(--secondary);
  padding: .65rem 1.5rem;
}
.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* Bouton "Ajouter au panier" */
.product-actions .add-to-cart {
  border-radius: var(--radius-sm);
  padding: .75rem 2rem;
  font-size: 1rem;
  letter-spacing: .03em;
}

/* ─── 8. CARTES PRODUIT ─────────────────────────────────────── */
.product-miniature .thumbnail-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-miniature .thumbnail-container:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-miniature .product-description {
  padding: .75rem 1rem 1rem;
  background: var(--white);
}

.product-miniature .product-title a {
  font-weight: 600;
  font-size: .9rem;
  color: var(--secondary);
  transition: color var(--transition);
}
.product-miniature .product-title a:hover { color: var(--primary); }

.product-miniature .product-price-and-shipping {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
}

/* Flags produit (Nouveau, Promo…) */
.product-flags li.product-flag {
  border-radius: var(--radius-sm);
  font-size: .75rem;
  padding: .3rem .65rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.product-flags li.product-flag.discount,
.product-flags li.product-flag.discount-percentage,
.product-flags li.product-flag.discount-amount {
  background: #f39d72;
}
.product-flags li.product-flag.new {
  background: #4cbb6c;
}

/* Quick view hover */
.product-miniature .highlighted-informations {
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(4px);
}
.product-miniature .highlighted-informations .quick-view {
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
}

/* ─── 9. FORMULAIRES ────────────────────────────────────────── */
.form-control {
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
  background: var(--bg-light);
  color: var(--secondary);
  padding: .6rem 1rem;
  font-size: .9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(36,185,215,.15);
  outline: none;
}

.form-control-select {
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
  background-color: var(--bg-light);
  height: 2.75rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.form-control-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,185,215,.15);
  outline: none;
}

/* Custom radio & checkbox */
.custom-radio input[type=radio]:checked + span {
  background-color: var(--primary);
}
.custom-checkbox input[type=checkbox]:checked + span {
  background: var(--primary-light);
  border-color: var(--primary);
}
.custom-checkbox input[type=checkbox]:checked + span .checkbox-checked {
  color: var(--primary);
}

/* ─── 10. PAGINATION ────────────────────────────────────────── */
.pagination .page-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: transparent;
  padding: .25rem;
}
.page-link {
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid #e0e0e0;
  background: var(--white);
  color: var(--secondary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  padding: .4rem .75rem;
}
.page-link:hover,
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── 11. SECTION PRODUIT ───────────────────────────────────── */
.product-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-cover img {
  border-radius: var(--radius);
}

/* Tabs produit */
.tabs {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 2rem;
}
.tabs .nav-tabs {
  border-bottom: 2px solid #eee;
}
.tabs .nav-tabs .nav-link {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: .75rem 1.25rem;
  transition: color var(--transition);
}
.tabs .nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary) !important;
}
.tabs .nav-tabs .nav-link:hover {
  color: var(--primary);
}

/* Prix produit */
.product-price {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
}
.has-discount.product-price { color: #f39d72; }
.product-discount .regular-price {
  font-size: .95rem;
  color: var(--text-muted);
}

/* Quantité */
.bootstrap-touchspin input.form-control {
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}
.btn-touchspin {
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.btn-touchspin:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ─── 12. BLOC CATÉGORIES / FILTRES ─────────────────────────── */
#search_filters,
#search_filters_brands,
#search_filters_suppliers,
.block-categories {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}

.block-categories .h6,
#search_filters > .h6 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--secondary);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 1rem;
}

/* ─── 13. BANDEAU HERO / SLIDER ─────────────────────────────── */
.carousel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.carousel .carousel-control {
  opacity: .85;
  transition: opacity var(--transition);
}
.carousel .carousel-control:hover { opacity: 1; }

.carousel .carousel-item .caption {
  background: rgba(0,0,0,.45);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
}
.carousel .carousel-item .caption .display-1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ─── 14. FOOTER ────────────────────────────────────────────── */
#footer {
  background: #1a1f2e;
  color: #b0b8cc;
  padding-top: 3rem;
  margin-top: 3rem;
}

.footer-container {
  padding-top: 0;
}

.footer-container .h3,
.footer-container .h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-container li a {
  color: #9aa0b4;
  font-size: .875rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-container li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-container li {
  margin-bottom: .5rem;
}

.block-contact {
  color: #9aa0b4;
  font-size: .875rem;
}
.block-contact .block-contact-title {
  color: #fff;
}

/* Newsletter footer */
.block_newsletter {
  background: rgba(36,185,215,.08);
  border: 1px solid rgba(36,185,215,.2);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.block_newsletter #block-newsletter-label {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
}
.block_newsletter form input[type=email] {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  height: 44px;
}
.block_newsletter form input[type=email]::placeholder { color: rgba(255,255,255,.5); }
.block_newsletter form input[type=email]:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,.15);
  outline: 0;
}
.block_newsletter .btn-primary {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  height: 44px;
}

/* Réseaux sociaux */
.block-social ul li {
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  background-color: rgba(255,255,255,.1);
  transition: background var(--transition), transform var(--transition);
}
.block-social ul li:hover {
  background-color: var(--primary);
  transform: scale(1.12);
}

/* Copyright bar */
#footer .footer-container + .row,
#footer > .row:last-child {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: .8125rem;
  color: #666e85;
}

/* ─── 15. REASSURANCE ───────────────────────────────────────── */
#block-reassurance {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
#block-reassurance li {
  border-bottom: 1px solid #f0f0f0;
  transition: background var(--transition);
}
#block-reassurance li:hover { background: var(--primary-light); }
#block-reassurance li .block-reassurance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
#block-reassurance img {
  width: 2rem;
  opacity: .75;
  transition: opacity var(--transition);
}
#block-reassurance li:hover img { opacity: 1; }

/* ─── 16. PANIER ────────────────────────────────────────────── */
.cart-grid-body .card-block {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  background: var(--white);
  padding: 1.5rem;
}
.cart-grid-right .card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}
.cart-grid-right .card .card-block.checkout .btn-primary {
  border-radius: var(--radius-sm);
  font-size: 1rem;
  padding: .9rem;
  letter-spacing: .04em;
}

.cart-summary-line .label { font-weight: 500; }
.cart-summary-line.cart-total .label,
.cart-summary-line.cart-total .value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

/* ─── 17. CHECKOUT ──────────────────────────────────────────── */
body#checkout section.checkout-step {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  background: var(--white);
  margin-bottom: 1rem;
  padding: 1.25rem;
}
body#checkout section.checkout-step .step-title {
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}
body#checkout section.checkout-step.-reachable.-current .step-number {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(36,185,215,.3);
}

/* ─── 18. PAGE PRODUIT ──────────────────────────────────────── */
.product-information {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Variantes */
.input-radio:checked + span,
.input-radio:hover + span {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(36,185,215,.15);
}
.radio-label {
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
  transition: border-color var(--transition), box-shadow var(--transition);
  padding: .3rem .75rem;
  font-size: .875rem;
  cursor: pointer;
}
.radio-label:hover {
  border-color: var(--primary);
}

/* ─── 19. NOTIFICATIONS / ALERTES ───────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: .9rem;
  padding: .9rem 1.2rem;
}
.alert-warning {
  background: #fff8f0;
  border-left: 4px solid #ff9a52;
  color: #7a4a1e;
}
.alert-danger {
  background: #fff0f0;
  border-left: 4px solid #ff4c4c;
  color: #7a1e1e;
}
.alert-success {
  background: #f0fff5;
  border-left: 4px solid #4cbb6c;
  color: #1e5e32;
}

/* Notification panier (modal) */
#blockcart-modal .modal-content {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
#blockcart-modal .modal-title i.material-icons {
  color: #4cbb6c;
}

/* ─── 20. LISTE PRODUITS (catégorie) ────────────────────────── */
.block-category {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.block-category h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
}

/* Tri / filtres */
.brands-sort .select-title,
.products-sort-order .select-title,
.suppliers-sort .select-title {
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
  background: var(--white);
  transition: border-color var(--transition);
}
.brands-sort .select-title:hover,
.products-sort-order .select-title:hover {
  border-color: var(--primary);
}

.brands-sort .dropdown-menu,
.products-sort-order .dropdown-menu,
.suppliers-sort .dropdown-menu {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid #eee;
  overflow: hidden;
}
.brands-sort .select-list:hover,
.products-sort-order .select-list:hover {
  background: var(--primary);
  border-radius: 0;
}

/* Filtres actifs */
.active_filters {
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid rgba(36,185,215,.2);
  padding: .75rem 1.25rem;
}
.active_filters .filter-block {
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(36,185,215,.2);
  font-size: .8rem;
  color: var(--primary-dark);
}

/* ─── 21. PAGE MON COMPTE ───────────────────────────────────── */
.page-my-account #content .links a span.link-item {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.page-my-account #content .links a span.link-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.page-my-account #content .links a i {
  color: var(--primary);
}

/* ─── 22. SOUS-CATÉGORIES ───────────────────────────────────── */
#subcategories ul li .subcategory-image a {
  border-radius: var(--radius);
  border: 1px solid #eee;
  transition: box-shadow var(--transition), border-color var(--transition);
}
#subcategories ul li:hover .subcategory-image a {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(36,185,215,.2);
  padding: 6px;
}
#subcategories ul li .subcategory-name {
  font-weight: 700;
  font-size: .875rem;
}

/* ─── 23. MODALS ────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  background: var(--bg-light);
  border-bottom: 1px solid #eee;
  padding: 1rem 1.5rem;
}
.modal-footer {
  border-top: 1px solid #eee;
  padding: 1rem 1.5rem;
}

/* ─── 24. TABLES (commandes) ────────────────────────────────── */
.table {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.table thead th {
  background: var(--bg-light);
  border-bottom: 2px solid #ddd;
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.table tbody tr:hover {
  background: var(--primary-light);
}

/* ─── 25. LOADER & ANIMATIONS ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-miniature {
  animation: fadeInUp .35s ease both;
}

/* Skeleton loader simulé (image) */
.product-miniature .product-thumbnail img {
  transition: transform .35s ease, opacity .25s;
}
.product-miniature:hover .product-thumbnail img {
  transform: scale(1.03);
}

/* ─── 26. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 767px) {
  .product-information {
    padding: 1rem;
    margin-top: 1rem;
  }
  .tabs {
    padding: 1rem;
  }
  .block-category {
    padding: 1rem;
  }
  .btn-primary {
    padding: .65rem 1rem;
    font-size: .875rem;
  }
  .product-cover {
    margin-bottom: 1.25rem;
  }
  #footer {
    padding-top: 2rem;
  }
  .footer-container .h3,
  .footer-container .h4 {
    font-size: .875rem;
  }
  .block_newsletter {
    padding: 1rem;
  }
  #header {
    position: relative; /* désactivé sur mobile pour économiser espace */
  }
}

@media (max-width: 575px) {
  .product-price {
    font-size: 1.25rem;
  }
  .carousel .carousel-item .caption .display-1 {
    font-size: 1.5rem;
  }
  .modal-dialog {
    margin: 10px;
  }
}

@media (min-width: 992px) {
  #header {
    position: sticky;
    top: 0;
  }
}

/* ─── 27. UTILITAIRES ───────────────────────────────────────── */
.separator { border-color: #eee; }

.page-content.page-cms {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

/* Scroll to top (si activé via JS) */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 9999;
}
#scroll-to-top.visible { opacity: 1; }
#scroll-to-top:hover { transform: scale(1.1); }

/* ─── 28. FOCUS ACCESSIBILITY ───────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
/* ============================================================

/* ============================================================
   PATCH v2.0 — REFONTE CARTES PRODUIT + CORRECTIONS
   ============================================================ */

/* ── FOOTER "VOTRE COMPTE" — titre en blanc ──────────────────── */
.footer-container .h3,
.footer-container .h4,
.footer-container .myaccount-title a,
.linklist .blockcms-title a,
#block_myaccount_infos .myaccount-title a {
  color: #fff !important;
}

/* ── ICÔNES HEADER — aligner icône et texte ─────────────────── */
#header .header-nav .user-info a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #232323 !important;
  font-weight: 600;
}
#header .header-nav .user-info a:hover { color: var(--primary) !important; }
#header .header-nav .user-info .material-icons { line-height: 1; font-size: 1.2rem; }
#header .header-nav .blockcart a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
#header .header-nav .blockcart .material-icons { line-height: 1; font-size: 1.2rem; }

/* ── CARTES PRODUIT — refonte complète ───────────────────────── */

/* Grille : espacement entre cartes */
#products .products,
.featured-products .products,
.product-accessories .products {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: .5rem;
}

/* Chaque tuile */
.product-miniature {
  display: flex !important;
  flex-direction: column;
  overflow: visible !important;
  margin: 0 !important;
}

/* Conteneur principal de la carte */
.product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: visible !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  background: #fff;
  transition: box-shadow .22s ease, transform .22s ease;
  margin-bottom: 0 !important;
}
.product-miniature .thumbnail-container:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

/* Zone image — overflow hidden uniquement ici */
.product-miniature .thumbnail-top {
  overflow: hidden !important;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

/* Description sous l'image — dans la carte, pas en dehors */
.product-miniature .product-description {
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: .875rem 1rem 1rem;
  overflow: visible !important;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

/* Titre */
.product-miniature .product-title {
  font-size: .875rem;
  font-weight: 600;
  color: #232323;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  margin: 0;
  width: 100%;
}
.product-miniature .product-title a { color: inherit; }

/* Prix — JAMAIS tronqué */
.product-miniature .product-price-and-shipping {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  white-space: nowrap;
  overflow: visible !important;
  width: 100%;
  display: block;
  margin-top: .2rem;
}

/* Highlighted (aperçu rapide) — dans la carte */
.product-miniature .highlighted-informations {
  position: relative !important;
  top: auto !important;
  border-radius: 0 0 12px 12px;
  background: #f8f8f8;
  padding: .5rem 0;
  border-top: 1px solid #eee;
}

/* ── MODAL ZOOM — un seul bouton fermer via JS ───────────────── */
#product-modal .modal-content::before { display: none !important; }
#product-modal .modal-dialog { max-width: 85vw; margin: 2vh auto; }
#product-modal .modal-content .modal-body { margin-left: 0; }
#product-modal .modal-content .modal-body .product-cover-modal {
  max-height: 80vh;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   PATCH v2.1 — Logo + soulignement catégorie sidebar
   ============================================================ */

/* ── 1. LOGO — plus grand ────────────────────────────────────── */
#header .logo,
#_desktop_logo img,
#header .header-top .logo img {
  max-height: 80px !important;
  height: 80px !important;
  width: auto !important;
}
#header .header-top {
  padding: .75rem 0;
}
#_desktop_logo {
  display: flex;
  align-items: center;
}

/* ── 2. CATÉGORIE SIDEBAR — titre soulignement propre ────────── */
.block-categories .h6,
.block-categories .category-top-menu,
.block-categories > .h6 {
  font-size: 1rem;
  font-weight: 800;
  color: #232323;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: .6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary) !important;
  background: none !important;
}

/* Supprimer l'ancien soulignement moche si présent */
.block-categories .h6::after,
.block-categories .category-top-menu::after {
  display: none !important;
}

/* Liens sous-catégories */
.block-categories .category-sub-menu li[data-depth="0"] > a {
  font-weight: 700;
  color: #232323;
  font-size: .9375rem;
  padding: .3rem 0;
  display: inline-block;
  transition: color .2s ease;
}
.block-categories .category-sub-menu li[data-depth="0"] > a:hover {
  color: var(--primary);
}
.block-categories .category-sub-menu li:not([data-depth="0"]) > a {
  color: #555;
  font-size: .875rem;
}
.block-categories .category-sub-menu li:not([data-depth="0"]) > a:hover {
  color: var(--primary);
}

/* ============================================================
   PATCH v2.2 — Sidebar catégorie : fix soulignement
   ============================================================ */

/* Titre bloc — soulignement uniquement sous le titre, pas partout */
.block-categories .h6 {
  display: inline-block !important;
  width: 100%;
  padding-bottom: .5rem !important;
  margin-bottom: .75rem !important;
  border-bottom: 2px solid var(--primary) !important;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .9375rem;
  color: #232323;
}

/* Sous-catégories — PAS en majuscules, casse normale */
.block-categories .category-sub-menu li > a,
.block-categories .category-sub-menu a {
  text-transform: none !important;
  font-weight: 400;
  font-size: .9375rem;
  color: #232323;
}
.block-categories .category-sub-menu li[data-depth="0"] > a {
  font-weight: 600;
  text-transform: none !important;
}

/* Supprimer la ligne parasite en bas du bloc */
.block-categories {
  border-bottom: none !important;
}
.block-categories .category-sub-menu li:last-child {
  border-bottom: none !important;
}
.block-categories .category-sub-menu li {
  border-bottom: none !important;
}
