/*
 * style.css — Aspirateur Solution / Solution Vacuums
 * Bootstrap 5 custom theme
 * Aesthetic: Clean professional retail with warm accent colors
 * Fonts: Montserrat (headings) + Open Sans (body)
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --color-primary:     #1a3a5c;   /* deep navy blue */
    --color-primary-dk:  #0f2540;
    --color-accent:      #c8000a;   /* vivid red (brand) */
    --color-accent-lt:   #e83030;
    --color-gold:        #d4a017;
    --color-bg:          #f8f9fa;
    --color-surface:     #ffffff;
    --color-border:      #dee2e6;
    --color-text:        #1c1c2e;
    --color-muted:       #6c757d;

    --font-heading:      'Montserrat', sans-serif;
    --font-body:         'Open Sans', sans-serif;

    --navbar-height:     68px;
    --topbar-height:     36px;
    --radius:            8px;
    --radius-lg:         14px;
    --shadow-sm:         0 1px 4px rgba(0,0,0,.08);
    --shadow:            0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:         0 8px 32px rgba(0,0,0,.16);

    --transition:        .2s ease;
}

/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--color-accent-lt);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/*
 * INLINE STYLE OVERRIDE — images in DB-generated content
 * ────────────────────────────────────────────────────────
 * The CMS (CKEditor) stores images with inline style="width:Npx;height:Npx".
 * Inline styles beat normal CSS rules, so we need !important here to force
 * responsive behaviour in all content-editable areas.
 */
.main-content img,
#contenu_static img,
.page-wrapper img:not(.navbar-logo):not(.payment-logos img) {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;   /* let max-width do the capping */
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: var(--color-primary-dk);
    color: rgba(255,255,255,.8);
    font-size: 12.5px;
    min-height: var(--topbar-height);
    line-height: 1;
}

.topbar-text {
    color: rgba(255,255,255,.75);
    font-size: 12px;
}

.lang-btn {
    color: rgba(255,255,255,.7);
    font-size: 12px;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.15);
    transition: all var(--transition);
}
.lang-btn:hover,
.lang-btn.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.main-navbar {
    background: var(--color-primary);
    min-height: var(--navbar-height);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    z-index: 1040;
}

/* Brand */
.navbar-brand {
    padding: 6px 0;
    flex-shrink: 0;
    min-width: 160px;
    display: flex;
    align-items: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    white-space: nowrap;
}
.brand-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: -.3px;
    text-transform: uppercase;
}
.brand-accent {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-logo {
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Nav links */
.main-navbar .navbar-nav .nav-link {
    color: rgba(255,255,255,.85);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .3px;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}

/* Dropdown */
.main-navbar .dropdown-menu {
    background: var(--color-primary);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    margin-top: 4px;
}
.main-navbar .dropdown-item {
    color: rgba(255,255,255,.8);
    font-size: 13.5px;
    padding: 8px 16px;
    transition: all var(--transition);
}
.main-navbar .dropdown-item:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* Cart button */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,.85);
    font-size: 22px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.2);
}
.cart-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.cart-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,37,64,.7) 40%, rgba(15,37,64,.1));
    display: flex;
    align-items: center;
}
.hero-banner h1,
.hero-banner h2,
.hero-banner p {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

@media (max-width: 767px) {
    .hero-banner { height: 160px; }
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
    min-height: calc(100vh - var(--navbar-height) - var(--topbar-height) - 280px);
}

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */
.page-title-bar {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: .75rem;
}
.page-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.sidebar-header {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.sidebar-body {
    padding: 8px 0;
}

/* Sidebar nav */
.sidebar-nav { display: flex; flex-direction: column; }

.sidebar-item { border-bottom: 1px solid #f0f0f0; }
.sidebar-item:last-child { border-bottom: none; }

.sidebar-link {
    display: block;
    padding: 9px 16px;
    color: var(--color-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.sidebar-link:hover,
.sidebar-link.active {
    background: #f0f4ff;
    color: var(--color-primary);
    padding-left: 20px;
}
.sidebar-link.active { color: var(--color-accent); }

.sidebar-sublink {
    display: block;
    padding: 7px 16px 7px 30px;
    color: var(--color-muted);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}
.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: var(--color-accent);
    padding-left: 34px;
}

.sidebar-chevron {
    font-size: 12px;
    transition: transform var(--transition);
}
[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-card-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .3s ease;
}
.product-card:hover .product-card-img-wrap img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 6px;
    flex: 1;
}
.product-card-title a {
    color: inherit;
    text-decoration: none;
}
.product-card-title a:hover {
    color: var(--color-accent);
}

.product-card-price {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.product-card-footer {
    padding: 0 14px 14px;
}

.btn-add-cart {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    width: 100%;
    transition: background var(--transition);
    cursor: pointer;
}
.btn-add-cart:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-title {
    font-size: 1.75rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
}

.product-specs-table th {
    background: #f0f4f8;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-primary);
    white-space: nowrap;
    width: 35%;
}
.product-specs-table td {
    font-size: 13.5px;
    color: var(--color-text);
}

/* Image zoom wrapper */
.product-img-main {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}
.product-img-main img {
    max-height: 380px;
    object-fit: contain;
    padding: 16px;
    transition: transform .3s ease;
}

.product-img-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.product-img-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
}
.product-img-thumb.active,
.product-img-thumb:hover {
    border-color: var(--color-primary);
}
.product-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* ============================================================
   CART PAGE
   ============================================================ */

/* Full-width cart layout */
.cart-page,
.cart-table-wrapper,
.cart-table-wrapper .table-responsive,
.cart-table {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Summary bar: full-width flex row with total + actions + logos */
.cart-summary-outer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    width: 100%;
    margin-top: 1.5rem;
}
.cart-summary-total-block {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-summary-total-block .text-accent {
    font-size: 22px;
}
.cart-summary-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cart-summary-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.payment-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.payment-logo {
    max-height: 30px;
    width: auto;
}
#tooltip_box {
    width: 100%;
    font-size: 12px;
    margin-top: 8px;
}
#tax-details {
    width: 100%;
}

.cart-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    padding: 12px 16px;
    border: none;
}
.cart-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background var(--transition);
}
.cart-table tbody tr:hover {
    background: #fafbfe;
}

.cart-row-shipping {
    background: #f8f9fa !important;
    color: var(--color-muted);
}

.qty-input,
.qty-select {
    max-width: 70px;
}

.cart-product-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}
.cart-product-link:hover {
    color: var(--color-accent);
}

.cart-price {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--color-text);
}

.empty-cart {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    max-width: 480px;
}

/* ============================================================
   CHECKOUT / CUSTOMER FORM
   ============================================================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    min-width: 80px;
}
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #fff;
    transition: all var(--transition);
}
.step.active .step-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(26,58,92,.15);
}
.step.active { color: var(--color-primary); }
.step.done .step-icon {
    background: #d4edda;
    border-color: #28a745;
    color: #28a745;
}
.step-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    max-width: 80px;
    margin-bottom: 22px;
}

.checkout-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.checkout-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: .5rem;
    margin-bottom: 1.2rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.payment-method-item {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.payment-method-item:hover {
    border-color: var(--color-primary);
    background: #f0f4f8;
}
.payment-method-item .form-check-input:checked ~ .form-check-label {
    color: var(--color-primary);
    font-weight: 600;
}

/* Bootstrap form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(26,58,92,.18);
}
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: .3rem;
}

/* Neutralise legacy global "label { float:left; width:25% }" rule for
   Bootstrap checkbox/radio labels so they sit inline next to the input. */
.form-check-label {
    float: none !important;
    width: auto !important;
    max-width: calc(100% - 1.75rem) !important;
    text-align: left !important;
    font-weight: normal !important;
    color: var(--color-text) !important;
    display: inline !important;
    white-space: normal !important;
    margin-right: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.form-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding-left: 0 !important;
}
.form-check-input {
    float: none !important;
    flex-shrink: 0 !important;
    margin-top: 0.2rem !important;
    margin-left: 0 !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-primary-dk);
    border-color: var(--color-primary-dk);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.btn-accent {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}
.btn-accent:hover {
    background: var(--color-accent-lt);
    border-color: var(--color-accent-lt);
    color: #fff;
}

.btn-outline-secondary {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius);
}

.text-accent { color: var(--color-accent) !important; }

/* ============================================================
   ADMIN INFO BAR
   ============================================================ */
.alert-sm {
    font-size: 12px;
}

/* ============================================================
   ALERT / MESSAGES
   ============================================================ */
.div_textalert,
.message {
    /* Legacy classes mapped to Bootstrap alert-danger */
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 10px 0;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-primary-dk);
    color: rgba(255,255,255,.75);
    margin-top: 3rem;
}
.footer-top {
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-heading);
}
.footer-brand .brand-main { font-size: 20px; }
.footer-brand .brand-accent { font-size: 13px; }

.footer-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: .75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links a {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--color-gold);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
}
.footer-contact i {
    color: var(--color-gold);
    margin-right: 6px;
    font-size: 13px;
}

.payment-logos img {
    filter: grayscale(40%) brightness(1.1);
    transition: filter var(--transition);
}
.payment-logos img:hover {
    filter: grayscale(0%) brightness(1.2);
}

.footer-bottom {
    background: rgba(0,0,0,.2);
    color: rgba(255,255,255,.5);
    font-size: 12px;
}

/* ============================================================
   MAIN CONTENT (from DB / CKEditor)
   ============================================================
   All content in .main-content and #contenu_static is entered via the
   admin CKEditor. It may contain inline width/height on images, tables,
   iframes, etc. We override with !important to force responsiveness.
   ============================================================ */
.main-content h1 {
    font-size: 1.5rem;
    color: var(--color-accent);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}
.main-content h2 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-top: 1.5rem;
}
.main-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ── Tables in static/category page content ──────────────────────────────
   Goal: truly fluid, never wider than viewport.
   "display:table" + "table-layout:fixed" lets columns shrink proportionally
   and overrides any inline style="width:NNNpx" on the <table> element.
   On mobile (≤600 px) each row becomes a flex column so logo/text stack. */
.main-content > div:not(.container_article) table:not(.cart-table):not(.table),
#contenu_static table:not(.cart-table):not(.table) {
    display: table !important;
    table-layout: fixed !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-collapse: collapse !important;
    overflow: hidden !important;
}

/* Cells must not grow beyond their share of the table */
.main-content > div:not(.container_article) table:not(.cart-table):not(.table) td,
.main-content > div:not(.container_article) table:not(.cart-table):not(.table) th,
#contenu_static table:not(.cart-table):not(.table) td,
#contenu_static table:not(.cart-table):not(.table) th {
    overflow: hidden !important;
    word-wrap: break-word !important;
    max-width: 0 !important;   /* forces cell to honour table-layout:fixed */
}

/* Images inside content tables: override inline width/height */
.main-content > div:not(.container_article) td img,
.main-content > div:not(.container_article) th img,
#contenu_static td img,
#contenu_static th img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ── Mobile: stack table rows as flex columns (≤ 600 px) ── */
@media (max-width: 600px) {
    .main-content > div:not(.container_article) table,
    #contenu_static table {
        display: block !important;
    }
    .main-content > div:not(.container_article) tbody,
    #contenu_static tbody {
        display: block !important;
    }
    .main-content > div:not(.container_article) tr,
    #contenu_static tr {
        display: flex !important;
        flex-direction: column !important;
    }
    .main-content > div:not(.container_article) td,
    .main-content > div:not(.container_article) th,
    #contenu_static td,
    #contenu_static th {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* iframes (YouTube embeds, maps, etc.) */
.main-content iframe,
#contenu_static iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* ============================================================
   LEGACY CLASS COMPATIBILITY
   ============================================================ */
.cellulebluemenu {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
}
.titres_specs_produit {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--color-primary);
}
.texte_specs_produit {
    font-size: 14px;
}
/* ============================================================
   PRODUCT LIST — full-width horizontal row cards
   DOM per card: .div_titre_produit > .clear > .images_produit > .produit_droite
   Layout: [image 260px] | [title + description flex] | [price+CTA 220px]
   ============================================================ */

/* Wrapper: vertical stack of cards */
.main-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 4px 0 28px !important;
}

/* .clear divs: float clearfixes, no longer needed —
   but NOT #contenu_static which the home page uses as its content wrapper */
.main-content .clear:not(#contenu_static),
.container_article .clear:not(#contenu_static) {
    display: none !important;
}

/* ── Card shell: horizontal row ───────────────────────────── */
.container_article {
    display: flex !important;
    flex-direction: row !important;
    background: var(--color-surface) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid #e0e5ef !important;
    box-shadow: 0 2px 10px rgba(26,58,92,.07) !important;
    overflow: hidden !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    position: relative !important;
    min-height: 200px !important;
}
.container_article:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 28px rgba(26,58,92,.13) !important;
}

/* ── Title bar: hidden — title moved inside JS, badge stays ─ */
.div_titre_produit {
    display: none !important;
}

/* ── Image panel: stronger gradient so products with white bg still read ─ */
.images_produit {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-height: 200px !important;
    background: linear-gradient(135deg, #e4eaf5 0%, #d8e1f0 100%) !important;
    border-right: 1px solid #d0d8ea !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}
.conteneur_images {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
}
.div_image_large {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: #ffffff !important;
    z-index: 1 !important;    /* zoom.css sets z-index:-100 which hides the image */
    position: relative !important;
}
.det_img_large {
    max-width: 100% !important;
    max-height: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform .35s ease !important;
    display: block !important;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.10)) !important;
}
.container_article:hover .det_img_large {
    transform: scale(1.06) !important;
}

/* ── Right side: description + CTA in a row ──────────────── */
.produit_droite {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

/* ── Middle: title + feature bullets ─────────────────────── */
.description_produit {
    flex: 1 !important;
    padding: 22px 24px 20px 24px !important;
    font-size: 13.5px !important;
    color: #52637a !important;
    line-height: 1.65 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
/* Product title injected by site.js above bullet list */
.description_produit .product-title {
    font-family: var(--font-heading) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    display: block !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(26, 58, 92, 0.35) !important;
    text-underline-offset: 3px !important;
    cursor: pointer !important;
    transition: color 0.15s, text-decoration-color 0.15s !important;
}
.description_produit .product-title:hover {
    color: var(--color-accent) !important;
    text-decoration-color: var(--color-accent) !important;
}
.description_produit ul {
    padding-left: 1.15em !important;
    margin: 0 !important;
    columns: 2 !important;
    column-gap: 24px !important;
}
.description_produit li {
    margin-bottom: 3px !important;
    break-inside: avoid !important;
}

/* ── Right column: price + CTA panel ─────────────────────── */
.ajouter_cart_produit {
    flex: 0 0 210px !important;
    width: 210px !important;
    border-left: 1px solid #edf0f7 !important;
    background: linear-gradient(180deg, #f8faff 0%, #edf1fa 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px 18px !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

/* Flatten nested tables — use flex */
.ajouter_cart_produit table,
.ajouter_cart_produit table table,
.ajouter_cart_produit tbody,
.ajouter_cart_produit table table tbody {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    border: none !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    overflow: visible !important;
}
.ajouter_cart_produit tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
}
.ajouter_cart_produit td {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: none !important;
    background: none !important;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
}

/* Price: the td that has background-image (the star graphic) */
.ajouter_cart_produit td[style*="background-image"] {
    background-image: none !important;
    height: auto !important;
    width: 100% !important;
    font-family: var(--font-heading) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--color-accent) !important;
    text-align: center !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
    justify-content: center !important;
}

/* Variant select */
.ajouter_cart_produit select {
    width: 100% !important;
    font-size: 12.5px !important;
    border: 1.5px solid #c8d4e8 !important;
    border-radius: var(--radius) !important;
    padding: 7px 10px !important;
    color: var(--color-text) !important;
    background: #fff !important;
    cursor: pointer !important;
}

/* "Sélectionnez..." text node — the td containing the select label */
.ajouter_cart_produit td:not([style*="background-image"]) {
    font-size: 12px !important;
    color: var(--color-muted) !important;
    font-weight: 400 !important;
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Qty input */
.ajouter_cart_produit input[name="quantite"] {
    width: 56px !important;
    text-align: center !important;
    border: 1.5px solid #c8d4e8 !important;
    border-radius: var(--radius) !important;
    padding: 7px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

/* Add-to-cart button */
.ajouter_cart_produit a.produit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 11px 14px !important;
    border-radius: var(--radius) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: 100% !important;
    transition: background .18s ease !important;
    letter-spacing: .3px !important;
}
.ajouter_cart_produit a.produit:hover {
    background: var(--color-accent) !important;
    color: #fff !important;
}
.ajouter_cart_produit a.produit img {
    display: none !important;
}
.ajouter_cart_produit a.produit::before {
    content: '🛒';
    font-size: 15px;
}

/* ── CTA panel: clean elements injected by JS ─────────────── */
.ajouter_cart_produit form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
}
/* Price display (fixed-price products) */
.price-display {
    font-family: var(--font-heading) !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    color: var(--color-accent) !important;
    text-align: center !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
    width: 100% !important;
}
/* Variant select wrapper */
.cta-select-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.cta-label {
    font-size: 11px !important;
    color: var(--color-muted) !important;
    text-align: center !important;
}
.cta-select-wrap select {
    width: 100% !important;
    font-size: 12.5px !important;
    border: 1.5px solid #c8d4e8 !important;
    border-radius: var(--radius) !important;
    padding: 7px 10px !important;
    color: var(--color-text) !important;
    background: #fff !important;
    cursor: pointer !important;
}
/* Qty row */
.cta-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
.cta-qty-label {
    font-size: 12px !important;
    color: var(--color-muted) !important;
}
.cta-qty-row input[name="quantite"] {
    width: 56px !important;
    text-align: center !important;
    border: 1.5px solid #c8d4e8 !important;
    border-radius: var(--radius) !important;
    padding: 7px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    background: #fff !important;
}

/* Admin "Editer" badge injected by JS */
.admin-edit-badge {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    background: rgba(26,58,92,.13) !important;
    color: var(--color-primary) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    z-index: 5 !important;
    transition: background .15s !important;
}
.admin-edit-badge:hover {
    background: var(--color-accent) !important;
    color: #fff !important;
}

/* ── Breadcrumb & heading ──────────────────────────────────── */
#breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 4px;
}
#breadcrumb .menu_breadcrumb {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}
#breadcrumb .menu_breadcrumb li {
    display: inline;
    font-weight: 600;
    color: var(--color-primary);
}
.main-content > h1 {
    font-size: 1.4rem !important;
    color: var(--color-primary) !important;
    border-bottom: 2px solid var(--color-border) !important;
    padding-bottom: .5rem !important;
    margin-bottom: .25rem !important;
}

/* ── Mobile: stack vertically ──────────────────────────────── */
/* ── Product listing card — tablet (768–991px) ─────────────────────────── */
@media (max-width: 991px) {
    /* Switch card to vertical stacking */
    .container_article {
        flex-direction: column !important;
        min-height: 0 !important;
    }

    /* Image panel: full width, fixed height */
    .images_produit {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 220px !important;
        height: 220px !important;
        border-right: none !important;
        border-bottom: 1px solid #d0d8ea !important;
        overflow: hidden !important;
    }

    /* Gallery active: adjust main image height */
    .img-gallery-main {
        min-height: 170px !important;
    }
    .img-gallery-main img {
        max-height: 160px !important;
    }

    /* Right side: stack description above CTA
       CRITICAL: flex children in a column-flex container don't auto-shrink
       their width — must set width:100%, min-width:0, align-self:stretch */
    .produit_droite {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Description: full width, single-column bullets */
    .description_produit {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        padding: 14px 16px !important;
        overflow: hidden !important;
    }
    .description_produit ul {
        columns: 1 !important;
    }
    /* Prevent text from overflowing card */
    .description_produit li,
    .description_produit p {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Product title inside description */
    .product-title-injected {
        font-size: 1rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* CTA panel: full width horizontal strip */
    .ajouter_cart_produit {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        border-left: none !important;
        border-top: 1px solid #edf0f7 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 16px !important;
        gap: 10px !important;
    }

    /* Price in CTA: smaller on tablet */
    .ajouter_cart_produit td[style*="background-image"],
    .price-display {
        font-size: 24px !important;
        width: auto !important;
    }

    /* Select wrapper: auto width in row layout */
    .cva-wrap {
        width: auto !important;
        min-width: 180px !important;
        max-width: 100% !important;
    }

    /* Add-to-cart button: full width */
    .ajouter_cart_produit a.produit,
    .ajouter_cart_produit .btn-add-cart,
    .ajouter_cart_produit input[type="submit"],
    .ajouter_cart_produit button[type="submit"] {
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

/* ── Product listing card — mobile (≤ 575px) ──────────────────────────── */
@media (max-width: 575px) {

    /* Tighter card padding */
    .container_article {
        border-radius: 10px !important;
        margin-bottom: 14px !important;
    }

    /* Image panel: shorter on small phones */
    .images_produit {
        height: 190px !important;
        min-height: 190px !important;
    }
    .img-gallery-main img {
        max-height: 140px !important;
    }
    .img-gallery-thumb {
        width: 38px !important;
        height: 38px !important;
    }
    .img-gallery-thumb img {
        width: 34px !important;
        height: 34px !important;
    }

    /* Description: tighter padding */
    .description_produit {
        padding: 12px !important;
        font-size: 13px !important;
    }
    .description_produit li { font-size: 13px !important; }

    /* CTA: stack everything vertically on narrow phones */
    .ajouter_cart_produit {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
        gap: 8px !important;
    }

    /* Price: centered */
    .ajouter_cart_produit td[style*="background-image"],
    .price-display {
        font-size: 22px !important;
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Label */
    .cta-label, .ajouter_cart_produit .cta-label {
        text-align: center !important;
        width: 100% !important;
    }

    /* Select: full width */
    .cva-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }
    .cva-trigger { width: 100% !important; }

    /* Qty row: center */
    .cta-qty-row {
        justify-content: center !important;
        width: 100% !important;
    }

    /* Add-to-cart button: full width */
    .ajouter_cart_produit a.produit,
    .ajouter_cart_produit .btn-add-cart,
    .ajouter_cart_produit input[type="submit"],
    .ajouter_cart_produit button[type="submit"],
    .ajouter_cart_produit [onclick*="ajout_panier"] {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
    }

    /* Admin edit badge: reposition */
    .admin-edit-badge {
        top: 6px !important;
        right: 6px !important;
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    /* Gallery counter: smaller */
    .img-gallery-counter { font-size: 10px !important; }
}


.ok_ajax {
    color: var(--color-primary);
    font-weight: 600;
}
.produit {
    color: var(--color-primary);
    font-weight: 500;
}
.produit:hover {
    color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE — comprehensive mobile/tablet/desktop breakpoints
   ============================================================

   Bootstrap 5 breakpoints:
     xs  < 576px   (phones portrait)
     sm  576–767px (phones landscape / small tablets)
     md  768–991px (tablets)
     lg  992–1199px (small desktops / large tablets)
     xl  ≥ 1200px  (desktops)

   Strategy:
   - Bootstrap handles the grid (col-*, navbar collapse, d-*) automatically
   - These rules handle custom components and typography scaling
   ============================================================ */

/* ── Large tablets & small desktops (≤ 991px) ─────────────────────────── */
@media (max-width: 991px) {

    /* Navbar */
    .main-navbar { min-height: 60px; }

    /* Hero */
    .hero-banner { height: 200px; }

    /* Checkout steps */
    .checkout-steps .step span { display: none; }
    .step-line { max-width: 40px; }

    /* Topbar: hide contact info, keep language switcher */
    .topbar-right { display: none !important; }

    /* Page wrapper: less vertical padding */
    .page-wrapper { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

    /* Product thumbnails: 3 columns */
    .div_liste_thumbnail { width: calc(33.333% - 20px) !important; }

    /* Sidebar: goes full width above content */
    .sidebar-card { margin-bottom: 1.5rem; }
}

/* ── Tablets (768–991px) ─────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {

    /* Product thumbnails: 3 columns */
    .div_liste_thumbnail { width: calc(33.333% - 20px) !important; }

    /* Cart table: keep header */
    .cart-table thead { display: table-header-group; }
}

/* ── Small tablets & large phones (576–767px) ────────────────────────── */
@media (max-width: 767px) {

    /* Hero */
    .hero-banner { height: 160px; }

    /* Typography */
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.25rem; }
    h3, .h3 { font-size: 1.1rem; }

    .page-title { font-size: 1.2rem; }

    /* Topbar: single row, smaller text */
    .topbar .container-xl { flex-direction: column; gap: 4px; text-align: center; }
    .topbar-left, .topbar-right { justify-content: center !important; }
    .topbar-right { display: flex !important; font-size: 11px; }

    /* Product thumbnails: 2 columns */
    .div_liste_thumbnail {
        width: calc(50% - 20px) !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    /* Product images: prevent overflow */
    .div_liste_thumbnail img { max-width: 100%; height: auto; }

    /* Cart */
    .cart-table thead { display: none; }
    .cart-table tbody td { display: block; text-align: right; }
    .cart-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--color-muted);
    }
    .cart-summary-outer { flex-direction: column; }

    /* Checkout steps */
    .checkout-steps { gap: .5rem; }
    .checkout-steps .step span { display: none; }

    /* Sidebar: full width at top */
    .sidebar-card { border-radius: var(--radius); }

    /* Forms */
    .form-card { padding: 1.25rem; }

    /* Footer columns: already handled by Bootstrap col-md-6, just tweak spacing */
    .footer-top { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .footer-brand { font-size: 1.1rem; }
}

/* ── Phones portrait (≤ 575px) ─────────────────────────────────────────── */
@media (max-width: 575px) {

    /* Typography */
    body { font-size: 14px; }
    h1, .h1 { font-size: 1.35rem; }

    /* Topbar: hide completely to save space */
    .topbar { display: none !important; }

    /* Navbar: tighter */
    .main-navbar { min-height: 56px; }
    .brand-main { font-size: 17px; }
    .brand-accent { font-size: 11px; }
    .navbar-logo { height: 40px !important; }

    /* Hero */
    .hero-banner { height: 130px; }
    .hero-banner h1, .hero-banner h2 { font-size: 1.2rem; }
    .hero-banner p { font-size: 0.85rem; }

    /* Product thumbnails: 2 compact columns */
    .div_liste_thumbnail {
        width: calc(50% - 12px) !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
        margin-bottom: 12px !important;
    }
    .div_liste_thumbnail img { max-width: 100%; height: auto !important; }

    /* Prevent any fixed-width element from causing horizontal scroll */
    .page-wrapper { overflow-x: hidden; }
    .container-xl, .container { max-width: 100%; padding-left: 12px; padding-right: 12px; }

    /* Tables: horizontal scroll */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Buttons: full width on small screens */
    .btn-block-xs { width: 100%; display: block; }

    /* Cart table */
    .cart-table { font-size: 13px; }
    .cart-summary-outer { padding: 12px; }

    /* Alert: smaller */
    .alert { font-size: 13px; padding: .6rem 1rem; }

    /* Page wrapper: minimal padding */
    .page-wrapper { padding-top: 1rem !important; padding-bottom: 1rem !important; }

    /* Footer: single column, center-aligned */
    .footer-top .row > div { text-align: center; }
    .footer-links, .footer-contact { padding-left: 0; text-align: center; }
    .footer-contact li { justify-content: center; }
    .footer-bottom .container-xl { text-align: center; }
    .payment-logos { justify-content: center !important; }

    /* Admin bar: smaller */
    .alert-sm { font-size: 11px; }
}

/* ── Very small phones (≤ 360px) ──────────────────────────────────────── */
@media (max-width: 360px) {
    .brand-main { font-size: 15px; }
    .cart-btn { padding: 6px 8px; font-size: 20px; }

    /* 1-column product grid on very narrow screens */
    .div_liste_thumbnail {
        width: calc(100% - 8px) !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
    }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
    .topbar, .main-navbar, .site-footer, .sidebar-card,
    .navbar-toggler, .cart-btn { display: none !important; }
    .page-wrapper { padding: 0 !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.clear { clear: both; }

.text-primary-brand { color: var(--color-primary) !important; }
.bg-primary-brand    { background: var(--color-primary) !important; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #b0b8c5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ============================================================
   LEGACY LAYOUT OVERRIDES
   Override fixed 1200px widths from styles_layout.css so the
   site is fully responsive. This block MUST stay at the end.
   ============================================================ */

/* Global container: centred with max-width matching Bootstrap container-xl.
   Was hardcoded to 1200px — now fluid up to 1320px then centred.           */
div#global_container {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Main content area: remove fixed width and legacy float */
div#div_contenu {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

/* ── Fix overlapping sections ──────────────────────────────────────────────
   styles_layout.css sets margin-top:-10px on #div_bandeau which pulls it
   10px up into #div_bandeau_drapeaux. Remove it so sections stack cleanly.
   Also neutralise the position:relative / top offset on #div_menu_haut.    */
div#div_bandeau {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Keep height but let it shrink on small screens */
    height: auto !important;
    min-height: 60px;
    background-size: cover !important;
    background-position: center top !important;
}

div#div_bandeau_drapeaux {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 2 !important;
}

/* The DB content uses margin-left:240px + 67 &nbsp; chars to space 4 links
   across a 1200px layout. Replace that with flexbox so links sit correctly
   at any viewport width regardless of the whitespace between them.
   Note: ALL links sit inside a single <strong>, so we flex both <p> and <strong>. */
div#div_bandeau_drapeaux p,
div#div_bandeau_drapeaux div,
div#div_bandeau_drapeaux strong {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px 16px !important;
    margin: 0 !important;
    padding: 4px 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

/* Keep the links as non-wrapping flex items */
div#div_bandeau_drapeaux a,
div#div_bandeau_drapeaux span {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Menu sits directly below the banner with no gap or overlap */
div#div_menu_haut {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    top: 0 !important;         /* neutralise any legacy top offset */
    left: 0 !important;
    z-index: 10 !important;    /* above the banner when wrapping */
    background: #bcce3a;       /* match the existing menu background */
}

/* Banner images: scale down on small screens */
div#div_bandeau img,
div#div_bandeau_drapeaux img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* Left sidebar: remove fixed float on small screens */
div#div_menu_gauche {
    box-sizing: border-box !important;
}

/* Footer strip: already 100% wide, just ensure no overflow */
div#div_pied_page {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    clear: both !important;
}

/* Top nav list: no overflow on desktop */
#menu,
#menu ul {
    max-width: 100% !important;
}

/* ── Hamburger button (hidden on desktop, shown on mobile) ─────────────── */
#menu-hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    z-index: 20;
}
#menu-hamburger:focus {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
}
#menu-hamburger .bar {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
/* Animate to X when open */
#menu-hamburger.is-open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-hamburger.is-open .bar:nth-child(2) { opacity: 0; }
#menu-hamburger.is-open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile (≤ 991px) ──────────────────────────────────────────────────── */
@media (max-width: 991px) {

    /* Stack the left sidebar above content on mobile */
    div#div_menu_gauche {
        float: none !important;
        width: 100% !important;
        margin-bottom: 12px;
    }
    div#div_contenu {
        margin-top: 0 !important;
    }

    /* Shrink banner further on phones */
    div#div_bandeau {
        min-height: 40px;
    }

    /* Menu wrapper: column layout, don't stretch children */
    div#div_menu_haut {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 !important;
    }

    /* Show hamburger button — left corner */
    #menu-hamburger {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        align-self: flex-start !important;
        justify-content: center !important;
        width: auto !important;
        padding: 10px 16px !important;
    }

    /* Hide all menu items by default on mobile */
    #menu {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        align-self: stretch !important;
        background: #bcce3a !important;
        border-top: 1px solid rgba(255,255,255,0.3) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Show when toggled open */
    #menu.mobile-open {
        display: flex !important;
        width: 100% !important;
        align-self: stretch !important;
    }

    /* Each item full-width, stacked */
    #menu > li {
        float: none !important;
        display: block !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.25) !important;
    }

    #menu > li > a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        text-align: left !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }

    /* Keep active state readable */
    #menu li.active > a {
        background: rgba(0,0,0,0.15) !important;
    }
}

/* ── Tax dropdown (#tooltip_box) ────────────────────────────────────────── */
.tax-toggle-link {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    white-space: nowrap;
    cursor: pointer;
}
.tax-toggle-link:hover {
    color: var(--accent, #bcce3a);
    text-decoration: underline;
}
.tax-toggle-link .tax-chevron {
    display: inline-block;
    font-size: 0.75em;
    transition: transform 0.2s ease;
    vertical-align: middle;
}
.tax-toggle-link[aria-expanded="true"] .tax-chevron {
    transform: rotate(180deg);
}
.tax-details-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px 14px;
    color: #555;
    line-height: 1.6;
}

/* ============================================================
   PRODUCT IMAGE LIGHTBOX
   ============================================================ */
#img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 20, 35, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    animation: lb-fade-in 0.2s ease;
}
#img-lightbox.lb-active {
    display: flex;
}
@keyframes lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#img-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#img-lightbox-img {
    max-width:  90vw;
    max-height: 88vh;
    width:  auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    transition: opacity 0.25s ease;
    display: block;
    background: #fff;
}

#img-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width:  44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
    z-index: 100000;
    padding: 0;
}
#img-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Loading spinner */
#img-lightbox-spinner {
    display: none;
    width:  48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
    position: absolute;
}
@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

/* Zoom-in cursor hint on the product image */
.det_img_large {
    cursor: zoom-in;
}

/* ============================================================
   PRODUCT IMAGE GALLERY (multi-image)
   JS rewrites .images_produit into .img-gallery when product
   has 2+ images. Single-image products keep existing layout.
   ============================================================ */

/* Override the base panel height when gallery is active */
.images_produit.img-gallery-active {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
}

/* ── Main image stage ── */
.img-gallery-main {
    position: relative;
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 200px;
    overflow: hidden;
}
.img-gallery-main img {
    max-width: 100% !important;
    max-height: 210px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    padding: 12px !important;
    cursor: zoom-in !important;
    transition: opacity 0.2s ease !important;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,.10)) !important;
    z-index: 1 !important;
    position: relative !important;
}

/* Prev / Next arrows on main image */
.img-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(26,58,92,0.72);
    border: none;
    color: #fff;
    width: 28px;
    height: 44px;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, opacity 0.15s;
    padding: 0;
    opacity: 0.75;
}
.img-gallery-arrow:hover { background: rgba(26,58,92,1); opacity: 1; }
.img-gallery-arrow.prev { left: 4px; }
.img-gallery-arrow.next { right: 4px; }
.img-gallery-arrow:disabled { opacity: 0.2; cursor: default; }

/* Image counter badge */
.img-gallery-counter {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    font-family: 'Open Sans', sans-serif;
}

/* ── Thumbnail strip ── */
.img-gallery-thumbs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background: #e4eaf5;
    border-top: 1px solid #d0d8ea;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}
.img-gallery-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, transform 0.15s;
}
.img-gallery-thumb:hover  { border-color: #7090c0; transform: scale(1.08); }
.img-gallery-thumb.active { border-color: #1a3a5c; box-shadow: 0 0 0 1px #1a3a5c; }
.img-gallery-thumb img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    padding: 2px !important;
    filter: none !important;
    cursor: pointer !important;
}

/* Hide original conteneur_images once gallery is built */
.img-gallery-active .conteneur_images { display: none !important; }

/* Single-image: keep existing layout, no gallery chrome */
.images_produit:not(.img-gallery-active) .conteneur_images { display: flex !important; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .images_produit.img-gallery-active { flex: 0 0 auto !important; width: 100% !important; }
    .img-gallery-main img { max-height: 180px !important; }
    .img-gallery-thumb { width: 38px; height: 38px; }
    .img-gallery-thumb img { width: 34px !important; height: 34px !important; }
}

/* ============================================================
   CUSTOM VARIANT SELECT DROPDOWN
   Replaces the native <select> in .ajouter_cart_produit with
   a styled widget whose open panel expands leftward to show
   full option text without being constrained by the CTA width.
   ============================================================ */

/* Hide the original native select (kept in DOM for form submit) */
.ajouter_cart_produit select.cva-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Wrapper — same width as the original select, position:relative anchor */
.cva-wrap {
    position: relative;
    width: 100%;
}

/* The "closed" trigger button */
.cva-trigger {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #c8d4e8;
    border-radius: var(--radius, 8px);
    padding: 7px 10px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--color-text, #2d3748);
    cursor: pointer;
    text-align: left;
    line-height: 1.35;
    transition: border-color 0.15s;
    min-height: 35px;
    height: auto;
}
.cva-trigger:hover  { border-color: #7090c0; }
.cva-trigger.open   { border-color: #1a3a5c; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Trigger label — wraps to show full selected text */
.cva-trigger-label {
    flex: 1;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* Chevron icon */
.cva-trigger-chevron {
    flex-shrink: 0;
    font-size: 10px;
    color: #8899b0;
    transition: transform 0.15s;
    pointer-events: none;
    margin-top: 3px;
}
.cva-trigger.open .cva-trigger-chevron { transform: rotate(180deg); }

/* Dropdown panel — expands LEFT so it's not clipped by the CTA column */
.cva-panel {
    display: none;
    position: absolute;
    right: 0;            /* anchored to right edge of .cva-wrap */
    top: 100%;
    min-width: 100%;     /* at least as wide as the trigger */
    max-width: 420px;    /* can grow left up to 420px */
    width: max-content;  /* shrink-wraps to longest option */
    background: #fff;
    border: 1.5px solid #1a3a5c;
    border-top: none;
    border-radius: 0 0 var(--radius, 8px) var(--radius, 8px);
    box-shadow: 0 6px 20px rgba(26,58,92,.15);
    z-index: 500;
    overflow: hidden;
}
.cva-panel.open { display: block; }

/* Individual option rows */
.cva-option {
    padding: 9px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--color-text, #2d3748);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.1s;
    line-height: 1.4;
}
.cva-option:hover    { background: #eef2fb; color: #1a3a5c; }
.cva-option.selected { background: #dde6f5; font-weight: 600; color: #1a3a5c; }
.cva-option + .cva-option { border-top: 1px solid #f0f3f9; }

/* ============================================================
   TEXTE COMPLEMENTAIRE — shown below product card on detail page
   ============================================================ */
.texte-complementaire-wrap {
    background: #fff;
    border: 1px solid #e0e6f0;
    border-radius: var(--radius, 12px);
    padding: 28px 32px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(26,58,92,.06);
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--color-text, #2d3748);
}
.texte-complementaire-wrap h2,
.texte-complementaire-wrap h3,
.texte-complementaire-wrap h4 {
    font-family: var(--font-heading) !important;
    color: var(--color-primary) !important;
    margin-top: 1.2em !important;
    margin-bottom: .5em !important;
}
.texte-complementaire-wrap ul,
.texte-complementaire-wrap ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}
.texte-complementaire-wrap li { margin-bottom: 5px; }
.texte-complementaire-wrap p  { margin-bottom: .85em; }
.texte-complementaire-wrap a  { color: var(--color-primary); text-decoration: underline; }
.texte-complementaire-wrap a:hover { color: var(--color-accent); }

/* Loading skeleton while fetching */
.texte-complementaire-wrap.tc-loading {
    min-height: 80px;
    background: linear-gradient(90deg, #f0f3f9 25%, #e4eaf5 50%, #f0f3f9 75%);
    background-size: 200% 100%;
    animation: tc-shimmer 1.2s infinite;
    border: 1px solid #e0e6f0;
}
@keyframes tc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Clickable product title in listing */
.product-title a {
    color: var(--color-primary) !important;
    text-decoration: none !important;
}
.product-title a:hover {
    color: var(--color-accent) !important;
    text-decoration: underline !important;
}

@media (max-width: 767px) {
    .texte-complementaire-wrap {
        padding: 18px 16px;
        margin-top: 16px;
    }
}

/* ============================================================
   PRODUITS LIÉS — carousel with arrow navigation
   ============================================================ */
.produits-lies-wrap {
    margin-top: 36px;
    margin-bottom: 8px;
}

/* Header row: title + arrows */
.produits-lies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    gap: 12px;
}
.produits-lies-title {
    font-family: var(--font-heading) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.produits-lies-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Arrow controls */
.pl-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.pl-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
    flex-shrink: 0;
}
.pl-arrow:hover:not(:disabled) {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.08);
}
.pl-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}
.pl-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Viewport + track */
.pl-viewport {
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}
.pl-track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    align-items: stretch;
}

/* Individual card */
.pl-card {
    flex: 0 0 calc(25% - 12px);   /* 4 visible by default */
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid #e0e6f0;
    border-radius: 14px;
    overflow: visible;             /* allow dropdown to escape card bounds */
    text-decoration: none !important;
    color: var(--color-text, #1a3a5c) !important;
    box-shadow: 0 2px 10px rgba(26,58,92,.07);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
/* Keep image + body corners rounded since card overflow is now visible */
.pl-card-img {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.pl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(26,58,92,.14);
    border-color: var(--color-primary);
    text-decoration: none !important;
}

/* Image zone */
.pl-card-img {
    background: linear-gradient(155deg, #eef1f8 0%, #dde3ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 148px;
    overflow: hidden;
    position: relative;
}
.pl-card-img img {
    max-width: 100%;
    max-height: 136px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.28s;
}
.pl-card:hover .pl-card-img img { transform: scale(1.07); }
.pl-card-img span { font-size: 44px; opacity: .35; }

/* Text body */
.pl-card-body {
    padding: 11px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.pl-card-name {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-primary);
}
.pl-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent, #c8000a);
    margin-top: auto;
}
.pl-card-price.pl-card-call {
    font-size: 11px;
    font-weight: 500;
    color: #8a9ab0;
    font-style: italic;
}

/* Add to cart button on linked product cards */
.pl-cart-form {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Custom 2-line variant dropdown */
.pl-cs {
    position: relative;
    width: 100%;
    user-select: none;
}
.pl-cs-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f7f9fc;
    border: 1.5px solid #dde4ed;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .18s, background .18s;
    min-width: 0;
}
.pl-cs-trigger:hover,
.pl-cs--open .pl-cs-trigger {
    border-color: var(--color-primary, #1a3a5c);
    background: #fff;
}
.pl-cs-val {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.pl-cs-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary, #1a3a5c);
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}
.pl-cs-price {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-accent, #c8000a);
    line-height: 1.2;
    white-space: nowrap;
}
.pl-cs-chevron {
    flex-shrink: 0;
    color: #8097b1;
    transition: transform .2s;
}
.pl-cs--open .pl-cs-chevron {
    transform: rotate(180deg);
}

/* Options panel */
.pl-cs-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--color-primary, #1a3a5c);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(26,58,92,.18);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}
.pl-cs--open .pl-cs-list {
    display: block;
}
.pl-cs-opt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s;
}
.pl-cs-opt:hover,
.pl-cs-opt:focus {
    background: #f0f4f9;
    outline: none;
}
.pl-cs-opt--active {
    background: rgba(26,58,92,.07);
}
.pl-cs-opt .pl-cs-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-primary, #1a3a5c);
    white-space: normal;
    word-break: break-word;
}
.pl-cs-opt .pl-cs-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent, #c8000a);
}
.pl-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    background: var(--color-accent, #c8000a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(200,0,10,.2);
    white-space: nowrap;
}
.pl-add-to-cart:hover {
    background: #a00008;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200,0,10,.35);
}
.pl-add-to-cart:active { transform: translateY(0); }
.pl-add-to-cart svg { flex-shrink: 0; }
.pl-cart-response {
    font-size: 11px;
    color: #1d9e75;
    min-height: 0;
    text-align: center;
}

/* Dot indicators */
.pl-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
}
.pl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c8d3e0;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.pl-dot.active {
    background: var(--color-primary);
    transform: scale(1.35);
}

/* Responsive: 3 cards on md, 2 on sm, 1.5 on xs */
@media (max-width: 991px) {
    .pl-card { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 640px) {
    .pl-card { flex-basis: calc(50% - 8px); }
    .pl-card-img { height: 118px; }
}
@media (max-width: 400px) {
    .pl-card { flex-basis: 75%; }
}

/* ============================================================
   REBUILT HORIZONTAL MEGA-MENU
   Modern sticky navbar with hover dropdowns and mega panels.
   Replaces the old green bullet-list #div_menu_haut.
   ============================================================ */

/* ── Nav pill links ───────────────────────────────────────── */
.main-navbar .navbar-nav .nav-pill {
    color: rgba(255,255,255,.82);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .25px;
    padding: 8px 13px;
    border-radius: 6px;
    position: relative;
    transition: color .18s ease, background .18s ease;
    white-space: nowrap;
}

.main-navbar .navbar-nav .nav-pill::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .22s ease;
}

.main-navbar .navbar-nav .nav-pill:hover,
.main-navbar .navbar-nav .nav-pill.active {
    color: #fff;
    background: rgba(255,255,255,.1);
    text-decoration: none;
}

.main-navbar .navbar-nav .nav-pill:hover::after,
.main-navbar .navbar-nav .nav-pill.active::after {
    transform: scaleX(1);
}

/* Remove Bootstrap's default dropdown-toggle caret */
.main-navbar .nav-pill.dropdown-toggle::after {
    display: inline-block;
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255,255,255,.6);
    margin-left: 5px;
    vertical-align: middle;
    transition: transform .2s ease;
    border-bottom: none;
}
.main-navbar .nav-pill.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ── Hover-open dropdown on desktop ──────────────────────── */
@media (min-width: 992px) {
    .nav-hover-drop:hover > .nav-mega,
    .nav-hover-drop > .nav-pill:focus + .nav-mega {
        display: block;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

}

/* ── Mega menu panel ──────────────────────────────────────── */
.nav-mega {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 760px;
    background: #ffffff !important;
    color: var(--color-text) !important;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15,37,64,.18), 0 2px 8px rgba(15,37,64,.1);
    border: 1px solid rgba(26,58,92,.1) !important;
    padding: 0;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease;
    overflow: hidden;
}

/* Bootstrap sets display:block on .show — we manage visibility ourselves */
.nav-hover-drop .nav-mega.open,
.nav-hover-drop:hover .nav-mega {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

/* Keep the panel visible when hovering it */
@media (min-width: 992px) {
    .nav-mega:hover {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

/* Transparent bridge between nav item and panel — prevents mouseleave gap */
@media (min-width: 992px) {
    .nav-hover-drop {
        padding-bottom: 8px;
        margin-bottom: -8px;
    }
    .nav-mega {
        top: calc(100% - 4px) !important;
    }
}

/* Red top accent strip */
.nav-mega::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

/* ── Mega inner layout ────────────────────────────────────── */
.mega-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Content columns */
.mega-col {
    flex: 1;
    padding: 22px 24px 20px;
    min-width: 195px;
    background: #ffffff;
}

/* Vertical divider */
.mega-divider-v {
    width: 1px;
    background: #eef0f5;
    flex-shrink: 0;
    margin: 16px 0;
}

/* Section heading */
.mega-heading {
    font-family: var(--font-heading);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary) !important;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f5;
    display: flex;
    align-items: center;
}
.mega-heading i {
    font-size: 12px;
    color: var(--color-accent);
}

/* Link items */
.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #3a4a60 !important;
    padding: 7px 6px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .15s, color .15s, padding-left .15s;
    margin: 0 -6px;
    background: transparent;
}
.mega-link:hover {
    background: #f0f4fb !important;
    color: var(--color-primary) !important;
    padding-left: 14px;
    text-decoration: none !important;
}

/* Small dot for plain links */
.mega-link-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #b0bdd0;
    flex-shrink: 0;
    transition: background .15s;
}
.mega-link:hover .mega-link-dot {
    background: var(--color-accent);
}

/* Icons inside links */
.mega-ico {
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Mega CTA panel ───────────────────────────────────────── */
.mega-cta {
    width: 220px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f2540 0%, #1a3a5c 100%);
    display: flex;
    align-items: stretch;
}

.mega-cta-inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.mega-cta-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 4px;
}

.mega-cta-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.mega-cta-body {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.mega-cta-btn {
    display: inline-block;
    margin-top: auto;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .18s, transform .18s;
    letter-spacing: .3px;
    width: 100%;
    text-align: center;
}
.mega-cta-btn:hover {
    background: #e83030;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Scroll-shrink effect — navbar gets slimmer when user scrolls ─── */
#mainNavbar {
    transition: padding .25s ease, box-shadow .25s ease;
}
#mainNavbar.scrolled {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    box-shadow: 0 3px 20px rgba(0,0,0,.3) !important;
}

/* ── Mobile mega menu — stacked accordion-style ──────────── */
@media (max-width: 991px) {
    .nav-mega {
        position: static;
        min-width: 0;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-top: 2px solid rgba(255,255,255,.1);
        background: rgba(255,255,255,.05);
        margin: 0 -12px;
        padding: 0;
    }
    .nav-mega::before { display: none; }
    .mega-wrap {
        flex-direction: column;
    }
    .mega-cta { width: 100%; }
    .mega-col { padding: 12px 16px; }
    .mega-divider-v { display: none; }
    .mega-cta-inner { padding: 16px; }
    .mega-link { color: rgba(255,255,255,.8); }
    .mega-link:hover { background: rgba(255,255,255,.1); color: #fff; }
    .mega-heading { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.1); }
    .mega-link-dot { background: rgba(255,255,255,.3); }
    .nav-pill.dropdown-toggle::after { float: right; margin-top: 6px; }

    /* On mobile, Bootstrap .show class controls visibility */
    .nav-mega { display: none; }
    .nav-mega.show { display: block; }

    /* Remove underline animation on mobile */
    .main-navbar .navbar-nav .nav-pill::after { display: none; }

    .main-navbar .navbar-nav .nav-pill {
        padding: 11px 12px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
}

/* ── Ensure old #div_menu_haut is hidden if still rendered by CI ─ */
div#div_menu_haut { display: none !important; }

/* ── Cart table: explicit override — must beat table-layout:fixed !important ── */
table.cart-table,
.cart-table-wrapper table.cart-table {
    table-layout: auto !important;
    width: 100% !important;
}
table.cart-table th,
table.cart-table td,
.cart-table-wrapper table.cart-table th,
.cart-table-wrapper table.cart-table td {
    max-width: none !important;
    overflow: visible !important;
    word-wrap: normal !important;
}


/* ── Social media badges ───────────────────────────────── */
/* Topbar icon */
a.topbar-social {
    display: inline-flex;
    align-items: center;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    text-decoration: none;
}
a.topbar-social:hover { opacity: 1; color: #ffffff; }

/* Footer badge */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
a.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    color: #fff;
}
a.footer-social-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
a.footer-social-btn.facebook { background: #1877f2; }

/* ── Phone CTA links (header + footer) ────────────────── */
a.topbar-phone,
a.topbar-phone:visited {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
a.topbar-phone:hover { color: #ffffff; text-decoration: underline; }

a.footer-phone,
a.footer-phone:visited {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, opacity 0.2s;
}
a.footer-phone:hover { color: #ffffff; text-decoration: underline; }

/* ── Tiptap columns layout (frontend display) ─────────── */
.tt-columns {
    display: grid;
    gap: 16px;
    margin: 12px 0;
    align-items: start;
}
.tt-columns--2 { grid-template-columns: repeat(2, 1fr); }
.tt-columns--3 { grid-template-columns: repeat(3, 1fr); }
.tt-columns--4 { grid-template-columns: repeat(4, 1fr); }
.tt-columns--5 { grid-template-columns: repeat(5, 1fr); }
.tt-columns--6 { grid-template-columns: repeat(6, 1fr); }
.tt-columns:not([class*="--"]) { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tt-col { min-width: 0; }

/* ── Rating Slider (frontend display) ─────────────────── */
.tt-rating-slider {
    display: block;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    margin: 12px 0;
    font-family: inherit;
}
.tt-rs-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    min-height: 1em;
}
.tt-rs-track-wrap { padding: 4px 0 8px; }
.tt-rs-track {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}
.tt-rs-fill {
    position: absolute;
    left: 0; top: 0; height: 100%;
    border-radius: 3px;
    background: var(--slider-color, #4f8ef7);
    width: var(--slider-pct, 0%);
    transition: width 0.3s;
}
.tt-rs-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--slider-color, #4f8ef7);
    left: var(--slider-pct, 0%);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.tt-rs-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 18px;
    margin-top: 4px;
}
.tt-star--full  { color: var(--slider-color, #4f8ef7); }
.tt-star--empty { color: #dde1e7; }
.tt-star--half  {
    position: relative;
    color: #dde1e7;
    display: inline-block;
}
.tt-star--half::before {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: var(--sc, var(--slider-color, #4f8ef7));
}
.tt-rs-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--slider-color, #4f8ef7);
    margin-left: 6px;
}

/* ── Planet logo icons ─────────────────────────────────── */
.navbar-planet-logo {
    height: 42px;
    width: auto;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}
.footer-planet-logo {
    height: 48px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Amazon Store Button ───────────────────────────────── */
.amazon-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF9900;
    color: #111 !important;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .18s, transform .15s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(255,153,0,.35);
    white-space: nowrap;
    letter-spacing: .2px;
}
.amazon-store-btn:hover {
    background: #e68a00;
    color: #111 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,153,0,.45);
}
.amazon-store-btn svg {
    flex-shrink: 0;
}
/* Footer variant — fits beside the Facebook button */
.footer-amazon-wrap {
    margin-top: 8px;
}
