/* ═══════════════════════════════════════════════════════════
   VOLMEA — Feuille de styles principale
   Stack : Bootstrap 5.3 + charte Volmea (variables.css)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   RESET & BASE TYPOGRAPHIE VOLMEA
   ═══════════════════════════════════════════════════════════ */

* {
    font-family: var(--font-family);
}

html {
    /* NE PAS mettre overflow-x: hidden ici : casse position:sticky */
}

body {
    overflow-x: hidden;
    max-width: 100%;
    /* Sticky footer : le contenu s'étire, le footer reste en bas */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    color: var(--volmea-anthracite);
    background-color: #fafaf8;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    color: var(--volmea-anthracite);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    font-weight: var(--font-weight-regular);
    color: var(--volmea-gris);
}

.text-muted {
    color: var(--volmea-gris) !important;
}

/* ═══════════════════════════════════════════════════════════
   HEADER VOLMEA - Style scandinave
   ═══════════════════════════════════════════════════════════ */

/* Wrapper sticky unique — nav + bandeau mode catalogue collés ensemble */
.sticky-header-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar {
    background-color: var(--volmea-blanc) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: opacity 0.2s ease;
}

.navbar-brand:hover img {
    opacity: 0.8;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--volmea-anthracite) !important;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.navbar-nav .nav-link:hover {
    color: var(--volmea-sage) !important;
}

.navbar-nav .nav-link.active {
    color: var(--volmea-sage) !important;
    font-weight: var(--font-weight-semibold);
}

/* Toggler icon pour fond blanc */
.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Badge panier */
#cart-count {
    font-size: .65rem;
    min-width: 1.25rem;
    line-height: 1.25rem;
    background-color: var(--volmea-sage) !important;
    color: var(--volmea-blanc);
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS VOLMEA - Minimalisme scandinave
   ═══════════════════════════════════════════════════════════ */

.btn-primary {
    background-color: var(--volmea-anthracite) !important;
    border: 2px solid var(--volmea-anthracite) !important;
    color: #FFFFFF !important;
    font-weight: var(--font-weight-semibold);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited,
.btn-primary:first-child:active {
    background-color: var(--volmea-noir) !important;
    border-color: var(--volmea-noir) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
}

.btn-secondary {
    background-color: var(--volmea-sage) !important;
    border: 2px solid var(--volmea-sage) !important;
    color: #FFFFFF !important;
    font-weight: var(--font-weight-semibold);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:visited {
    background-color: #a0b39f !important;
    border-color: #a0b39f !important;
    color: #FFFFFF !important;
}

.btn-outline-primary {
    border: 2px solid var(--volmea-anthracite) !important;
    color: var(--volmea-anthracite) !important;
    background-color: transparent !important;
    font-weight: var(--font-weight-semibold);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--volmea-anthracite) !important;
    border-color: var(--volmea-anthracite) !important;
    color: #FFFFFF !important;
}

.btn-outline-secondary {
    border: 2px solid var(--volmea-sage) !important;
    color: var(--volmea-anthracite) !important;
    background-color: transparent !important;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--volmea-sage) !important;
    border-color: var(--volmea-sage) !important;
    color: #FFFFFF !important;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-slide {
    padding: 0.4rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS PRODUITS - Style épuré
   ═══════════════════════════════════════════════════════════ */

.card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--volmea-sage);
}

.card-title {
    font-weight: var(--font-weight-semibold);
    color: var(--volmea-anthracite);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--volmea-gris);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-img-top {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-body {
    padding: var(--spacing-md);
}

/* Cards produits cliquables (catalogue) */
.product-card {
    cursor: pointer;
}

.product-card .price-from {
    font-size: 0.7rem;
    color: #888;
    display: block;
    line-height: 1.2;
    margin-bottom: 1px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card .price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    color: var(--volmea-anthracite);
}

.product-card .card-img-top {
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 0.75rem;
    height: 280px;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.product-card:focus-visible {
    outline: 3px solid var(--volmea-sage);
    outline-offset: 3px;
    transform: translateY(-3px);
}

.product-card .btn {
    position: relative;
    cursor: pointer;
}

.product-card:hover .btn {
    transform: none;
}

/* Prix produits */
.text-primary {
    color: var(--volmea-anthracite) !important;
    font-weight: var(--font-weight-bold);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER VOLMEA - Élégance sobre
   ═══════════════════════════════════════════════════════════ */

footer {
    background-color: var(--volmea-noir) !important;
    color: var(--volmea-blanc);
}

footer h5, footer h6 {
    color: var(--volmea-blanc);
    font-weight: var(--font-weight-semibold);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

footer a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: var(--font-weight-regular);
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--volmea-beige) !important;
    text-decoration: none;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
    color: inherit !important;
}

.footer-link:hover .bi-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   BADGES CATÉGORIES - Couleurs Volmea
   ═══════════════════════════════════════════════════════════ */

.badge {
    font-weight: var(--font-weight-semibold);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background-color: var(--volmea-sage) !important;
    color: var(--volmea-blanc);
}

.badge.bg-secondary {
    background-color: #d4c4a8 !important;
    color: var(--volmea-anthracite);
}

.badge.bg-success {
    background-color: var(--volmea-sage) !important;
    color: var(--volmea-blanc);
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */

.form-control:focus,
.form-select:focus {
    border-color: var(--volmea-sage);
    box-shadow: 0 0 0 0.2rem rgba(184, 197, 176, 0.25);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--volmea-anthracite);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════ */

.alert-success {
    background-color: rgba(184, 197, 176, 0.2);
    border-color: var(--volmea-sage);
    color: var(--volmea-anthracite);
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER — breakout pleine largeur
   ═══════════════════════════════════════════════════════════ */

.hero-full {
    margin-top:    -1.5rem;
    margin-left:   calc(-50vw + 50%);
    margin-right:  calc(-50vw + 50%);
    width:         100vw;
    max-width:     100vw;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   PANIER - Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#cartFeedback .alert {
    animation: slideIn .25s ease;
}

/* ═══════════════════════════════════════════════════════════
   PANIER — Image article
   ═══════════════════════════════════════════════════════════ */

.cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.cart-item-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background: #f5f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PANIER — Contrôles quantité
   ═══════════════════════════════════════════════════════════ */

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: 110px;
}

.quantity-controls .qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.quantity-controls .qty-input {
    width: 46px;
    height: 32px;
    text-align: center;
    padding: 0 4px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    font-size: .9rem;
    -moz-appearance: textfield;
}

.quantity-controls .qty-input::-webkit-inner-spin-button,
.quantity-controls .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   PANIER — Récapitulatif sticky
   ═══════════════════════════════════════════════════════════ */

.cart-summary {
    position: sticky;
    top: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT — Stripe Element & récapitulatif
   ═══════════════════════════════════════════════════════════ */

#payment-element {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #fff;
    min-height: 48px;
}

.checkout-summary {
    position: sticky;
    top: 20px;
    background: #faf9f7;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout-total {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--volmea-anthracite);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
}

.shipping-info {
    background: rgba(184, 197, 176, 0.15);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin: 10px 0;
    font-size: .9rem;
    border-left: 3px solid var(--volmea-sage);
}

.free-shipping {
    color: var(--volmea-sage);
    font-weight: var(--font-weight-semibold);
}

/* ═══════════════════════════════════════════════════════════
   PAGE CONFIRMATION
   ═══════════════════════════════════════════════════════════ */

.confirmation-success {
    text-align: center;
    padding: 40px 20px 20px;
}

.order-number {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--volmea-sage);
    background: rgba(184, 197, 176, 0.15);
    padding: 8px 24px;
    border-radius: var(--radius-md);
    margin: 12px 0 16px;
    letter-spacing: .03em;
    border: 1px solid var(--volmea-sage);
}

/* ═══════════════════════════════════════════════════════════
   ADMIN SIDEBAR (complément à admin_header.php)
   ═══════════════════════════════════════════════════════════ */

.sidebar .nav-link {
    padding: .5rem .75rem;
    font-size: .9rem;
    font-family: var(--font-family);
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS RÉSIDUELS - Écraser Bootstrap success/info/warning
   ═══════════════════════════════════════════════════════════ */

.btn-success,
.btn-info,
.btn-warning {
    background-color: var(--volmea-anthracite) !important;
    border-color: var(--volmea-anthracite) !important;
    color: var(--volmea-blanc) !important;
    font-weight: var(--font-weight-semibold);
}

.btn-success:hover,
.btn-info:hover,
.btn-warning:hover {
    background-color: var(--volmea-noir) !important;
    border-color: var(--volmea-noir) !important;
    color: #FFFFFF !important;
}

.btn-outline-success,
.btn-outline-info,
.btn-outline-warning {
    border-color: var(--volmea-anthracite) !important;
    color: var(--volmea-anthracite) !important;
    background-color: transparent;
    font-weight: var(--font-weight-semibold);
    border-width: 2px;
}

.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    background-color: var(--volmea-anthracite) !important;
    color: var(--volmea-blanc) !important;
}

/* Bouton beige (alternatif doux) */
.btn-beige {
    background-color: var(--volmea-beige);
    border: 2px solid var(--volmea-beige);
    color: var(--volmea-anthracite);
    font-weight: var(--font-weight-semibold);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-beige:hover {
    background-color: #d4c4a8;
    border-color: #d4c4a8;
    color: var(--volmea-anthracite);
}

/* ═══════════════════════════════════════════════════════════
   FIL D'ARIANE - Style scandinave
   ═══════════════════════════════════════════════════════════ */

.breadcrumb {
    background-color: transparent;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--volmea-gris);
}

.breadcrumb-item a {
    color: var(--volmea-anthracite);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: var(--font-weight-medium);
}

.breadcrumb-item a:hover {
    color: var(--volmea-sage);
}

.breadcrumb-item.active {
    color: var(--volmea-sage);
    font-weight: var(--font-weight-semibold);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--volmea-gris);
    padding: 0 0.5rem;
    float: none;
}

/* ═══════════════════════════════════════════════════════════
   LIENS - Couleur sauge par défaut
   ═══════════════════════════════════════════════════════════ */

a {
    color: var(--volmea-sage);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--volmea-anthracite);
    text-decoration: none;
}

/* Exception : liens dans navbar restent anthracite */
.navbar a,
.navbar a:hover {
    text-decoration: none;
}

/* Les boutons <a> ne doivent pas hériter de la couleur sage —
   la couleur est gérée par chaque classe .btn-* */

/* ═══════════════════════════════════════════════════════════
   SECTIONS À FOND COLORÉ - Breakout pleine largeur
   ═══════════════════════════════════════════════════════════ */

/* Classe simple pour fond beige (dans un container) */
.bg-volmea-beige {
    background-color: var(--volmea-beige);
}

.bg-volmea-sage {
    background-color: var(--volmea-sage);
}

/* Classe section beige pleine largeur (breakout du container Bootstrap) */
.section-beige {
    background-color: var(--volmea-beige);
    /* Break out of Bootstrap container */
    margin-left:   calc(-50vw + 50%);
    margin-right:  calc(-50vw + 50%);
    /* Re-add padding so content stays at container width */
    padding-left:  calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-top:   var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    width:         100vw;
    max-width:     100vw;
    margin-top:    0;
    margin-bottom: var(--spacing-lg);
}

.section-beige h2,
.section-beige h3 {
    color: var(--volmea-anthracite);
}

/* ═══════════════════════════════════════════════════════════
   ICÔNES SVG - Style Volmea
   ═══════════════════════════════════════════════════════════ */

/* Icônes catégories (page d'accueil) */
.category-icon {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.category-icon.icon-vase,
.category-icon.icon-accessoire {
    filter: invert(68%) sepia(12%) saturate(831%) hue-rotate(54deg) brightness(93%) contrast(87%);
    /* Sauge #B8C5B0 */
}

.category-icon.icon-cachepot {
    filter: invert(81%) sepia(13%) saturate(563%) hue-rotate(357deg) brightness(96%) contrast(91%);
    /* Beige #c4b49d */
}

.category-card:hover .category-icon {
    transform: scale(1.15);
}

/* Icônes header (panier, user) */
.header-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.3rem;
    filter: invert(18%) sepia(8%) saturate(457%) hue-rotate(169deg) brightness(96%) contrast(87%);
    /* Anthracite #2C2C2C */
    transition: filter 0.2s ease;
}

.nav-link:hover .header-icon {
    filter: invert(68%) sepia(12%) saturate(831%) hue-rotate(54deg) brightness(93%) contrast(87%);
    /* Sauge au hover */
}

/* ═══════════════════════════════════════════════════════════
   MENU ESPACE CLIENT
   ═══════════════════════════════════════════════════════════ */

/* Icônes menu latéral — couleur par défaut : anthracite */
.user-sidebar .nav-icon {
    filter: invert(18%) sepia(8%) saturate(457%) hue-rotate(169deg) brightness(96%) contrast(87%);
    transition: filter 0.2s ease;
    flex-shrink: 0;
}

/* Lien actif : couleur sauge */
.user-sidebar .list-group-item.active .nav-icon {
    filter: invert(68%) sepia(12%) saturate(831%) hue-rotate(54deg) brightness(93%) contrast(87%);
}

/* Hover : sauge (sauf déconnexion) */
.user-sidebar .list-group-item:hover .nav-icon:not(.nav-icon--danger) {
    filter: invert(68%) sepia(12%) saturate(831%) hue-rotate(54deg) brightness(93%) contrast(87%);
}

/* Icône déconnexion : rouge */
.nav-icon--danger {
    filter: invert(28%) sepia(91%) saturate(2821%) hue-rotate(346deg) brightness(94%) contrast(97%) !important;
}

/* Override Bootstrap : couleur active sauge au lieu de bleu */
.user-sidebar .list-group-item.active {
    background-color: rgba(184, 197, 176, 0.12) !important;
    border-color: rgba(184, 197, 176, 0.3) !important;
    color: var(--volmea-sage) !important;
}

.user-sidebar .list-group-item:hover {
    background-color: rgba(184, 197, 176, 0.08);
    color: var(--volmea-sage);
}

/* Icône titre H1 catalogue */
.title-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: invert(68%) sepia(12%) saturate(831%) hue-rotate(54deg) brightness(93%) contrast(87%);
    /* Sauge */
}

/* ═══════════════════════════════════════════════════════════
   ICÔNES FICHE PRODUIT
   ═══════════════════════════════════════════════════════════ */

/* Icône dans bouton primaire (panier) */
.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

/* Icônes statut (En stock) et infos (livraison, recycle) */
.status-icon,
.info-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Icône "En stock" : colorisation verte via le parent .text-success */
.text-success .status-icon {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(90%) contrast(119%);
}

/* Icône livraison : anthracite */
.info-icon {
    filter: invert(18%) sepia(8%) saturate(457%) hue-rotate(169deg) brightness(96%) contrast(87%);
}

/* Icône recycle : vert */
.info-icon--green {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(90%) contrast(119%);
}

/* Icône panier vide */
.empty-cart-icon {
    width: 80px;
    height: 80px;
    filter: invert(18%) sepia(8%) saturate(457%) hue-rotate(169deg) brightness(96%) contrast(87%);
    opacity: 0.3;
}

/* Placeholder produit sans image (cart table) */
.placeholder-icon {
    filter: invert(18%) sepia(8%) saturate(457%) hue-rotate(169deg) brightness(96%) contrast(87%);
    opacity: 0.2;
}

/* Modificateur jaune (ampoule) */
.info-icon--yellow {
    filter: invert(77%) sepia(72%) saturate(481%) hue-rotate(359deg) brightness(103%) contrast(101%);
}

/* Icône section titre (adresse, etc.) */
.section-icon {
    flex-shrink: 0;
    filter: invert(68%) sepia(12%) saturate(831%) hue-rotate(54deg) brightness(93%) contrast(87%);
    /* Sauge */
}

/* Icônes dans les badges produits catalogue */
.badge-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    flex-shrink: 0;
}

/* Icônes dans les boutons filtres catalogue */
.filter-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0.2rem;
    filter: invert(18%) sepia(8%) saturate(457%) hue-rotate(169deg) brightness(96%) contrast(87%);
    /* Anthracite par défaut */
    transition: filter 0.2s ease;
}

.btn-outline-primary:hover .filter-icon {
    filter: brightness(0) invert(1);
    /* Blanc au hover (fond anthracite) */
}

.btn-outline-primary.active .filter-icon {
    filter: brightness(0) invert(1);
    /* Blanc sur fond actif */
}

/* Filtre actif : fond sauge */
.btn-outline-primary.active {
    background-color: var(--volmea-sage) !important;
    border-color: var(--volmea-sage) !important;
    color: #FFFFFF !important;
}

/* Cards catégories */
.category-card {
    transition: all 0.3s ease;
    background-color: var(--volmea-blanc);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--volmea-sage) !important;
    background-color: #fdfcfa;
}

.category-card h3 {
    color: var(--volmea-anthracite);
    transition: color 0.2s ease;
}

.category-card:hover h3 {
    color: var(--volmea-sage);
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS DÉSACTIVÉS / ÉPUISÉS
   ═══════════════════════════════════════════════════════════ */

.btn:disabled,
.btn.disabled,
.btn[disabled] {
    background-color: #d1d1d1 !important;
    border-color: #d1d1d1 !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.75;
    transform: none !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════
   SÉLECTEUR DE TAILLES - Style Volmea
   ═══════════════════════════════════════════════════════════ */

.btn-check:checked + .btn,
.btn-check:checked + .btn-outline-secondary {
    background-color: var(--volmea-sage) !important;
    border-color:     var(--volmea-sage) !important;
    color:            var(--volmea-blanc) !important;
}

.btn-check:focus + .btn,
.btn:focus {
    box-shadow: 0 0 0 3px rgba(184, 197, 176, 0.35);
}

/* ═══════════════════════════════════════════════════════════
   OVERRIDE BOOTSTRAP - Éléments primary résiduels
   ═══════════════════════════════════════════════════════════ */

.bg-primary {
    background-color: var(--volmea-anthracite) !important;
}

.border-primary {
    border-color: var(--volmea-anthracite) !important;
}

a.text-primary {
    color: var(--volmea-sage) !important;
}

a.text-primary:hover {
    color: var(--volmea-anthracite) !important;
}

/* ─── Focus ring global → sauge ─── */
:focus-visible {
    outline: 2px solid var(--volmea-sage);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   UTILITAIRES
   ═══════════════════════════════════════════════════════════ */

.cursor-pointer { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   FIX FINAL - Texte blanc forcé sur tous les boutons remplis
   (Doit rester EN DERNIER pour l'emporter sur tout)
   ═══════════════════════════════════════════════════════════ */

.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-success,
.btn-success:hover,
.btn-info,
.btn-info:hover,
.btn-warning,
.btn-warning:hover,
.btn-dark,
.btn-dark:hover {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Outline : texte anthracite par défaut, blanc au hover */
.btn-outline-primary,
.btn-outline-primary:link,
.btn-outline-primary:visited {
    color: var(--volmea-anthracite) !important;
}

.btn-outline-secondary,
.btn-outline-secondary:link,
.btn-outline-secondary:visited {
    color: var(--volmea-anthracite) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    color: #FFFFFF !important;
}

/* Désactivés : toujours gris lisible */
.btn.disabled,
.btn:disabled,
a.btn.disabled {
    background-color: #d1d1d1 !important;
    border-color: #d1d1d1 !important;
    color: #666666 !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

/* Bouton beige : texte anthracite (fond clair) */
.btn-beige,
.btn-beige:link,
.btn-beige:visited,
.btn-beige:hover {
    color: var(--volmea-anthracite) !important;
}

/* ═══════════════════════════════════════════════════════════
   BANDEAU MODE CATALOGUE
   ═══════════════════════════════════════════════════════════ */

.catalog-mode-banner {
    /* position: relative — c'est le wrapper parent qui est sticky */
    min-height: 48px;
    background: var(--volmea-sage);
    color: var(--volmea-anthracite);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   BANDEAU PUBLICITAIRE
   ═══════════════════════════════════════════════════════════ */

.promo-banner {
    background: var(--volmea-sage);
    color: var(--volmea-anthracite);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 3rem 0.75rem 1rem;
    margin: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    position: relative;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-banner-icon {
    flex-shrink: 0;
    color: var(--volmea-anthracite);
}

.promo-banner-text {
    /* pas de flex:1 — le wrapper se centre naturellement */
}

.promo-banner-close {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--volmea-anthracite);
}

.promo-banner-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.promo-banner-close svg {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   MEGA-MENU COLLECTIONS
   ═══════════════════════════════════════════════════════════ */

/* --- Panel dropdown commun (desktop + mobile) --- */
.collections-megamenu {
    min-width: 240px;
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    background-color: var(--volmea-blanc) !important;
    padding: 0.5rem 0 !important;
}

/* --- Desktop ≥992px : ouverture au hover avec animation --- */
@media (min-width: 992px) {
    /* Visibilité/opacité plutôt que display pour permettre la transition */
    .collections-megamenu {
        display: block !important; /* toujours en rendu (position:absolute = hors flux) */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
        pointer-events: none;
        margin-top: 0 !important; /* pas de gap → pas de perte de hover entre le lien et le panel */
    }

    /* Pont invisible : étend la zone de hover du <li> de 12px sous son bord bas.
       Sans ça, tout gap résiduel (Popper, border, etc.) coupe le :hover parent. */
    .collections-dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 12px;
        background: transparent;
    }

    /* Ouverture au hover ou via Bootstrap JS (clic / clavier) */
    .collections-dropdown:hover > .collections-megamenu,
    .collections-megamenu.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.22s ease, transform 0.22s ease;
        pointer-events: auto;
    }
}

/* --- Mobile ≤991px : inline dans le navbar-collapse --- */
@media (max-width: 991.98px) {
    /* Rétablir le comportement natif Bootstrap (display none → block via .show) */
    .collections-megamenu:not(.show) {
        display: none !important;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
    }

    .collections-megamenu.show {
        display: block !important;
        position: static !important; /* inline dans le collapse, pas de survol absolu */
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        background-color: #f7f5f0 !important;
        margin: 0.25rem 0 0 0 !important;
        padding: 0.25rem 0 !important;
    }
}

/* --- Items du dropdown --- */
.collections-item {
    display: flex !important;
    align-items: center;
    padding: 0.6rem 1.25rem !important;
    font-family: var(--font-family) !important;
    font-size: 0.875rem !important;
    font-weight: var(--font-weight-medium) !important;
    color: var(--volmea-anthracite) !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
}

.collections-item:hover,
.collections-item:focus {
    background-color: var(--volmea-beige) !important;
    color: var(--volmea-sage) !important;
}

/* "Toutes les collections" : légère emphase */
.collections-all {
    font-weight: var(--font-weight-semibold) !important;
}

.collections-all:hover,
.collections-all:focus {
    color: var(--volmea-anthracite) !important;
}

/* --- Icônes SVG inline --- */
.collections-icon {
    flex-shrink: 0;
    opacity: 0.65;
    vertical-align: middle;
    transition: opacity 0.2s ease;
    color: currentColor;
}

.collections-item:hover .collections-icon,
.collections-item:focus .collections-icon {
    opacity: 1;
}

/* Focus visible sur le toggle "Collections" */
.collections-dropdown > .nav-link:focus-visible {
    outline: 2px solid var(--volmea-sage);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ================================================================
   Onglets "Plus d'informations" — fiche produit
================================================================= */
.nav-pills .nav-link {
    color: var(--volmea-charcoal);
    background-color: #fff;
    border: 2px solid #e0e0e0;
    margin-right: .5rem;
    padding: .6rem 1.4rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color .2s, border-color .2s, color .2s;
}
.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: var(--volmea-sage);
    color: var(--volmea-sage);
}
.nav-pills .nav-link.active {
    background-color: var(--volmea-sage);
    border-color: var(--volmea-sage);
    color: #fff;
}

.product-tab-content {
    line-height: 1.8;
    color: var(--volmea-charcoal);
}
.product-tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.25rem 0;
}
.product-tab-content h2,
.product-tab-content h3,
.product-tab-content h4 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    color: var(--volmea-charcoal);
    font-weight: 600;
}
.product-tab-content ul,
.product-tab-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.product-tab-content li {
    margin-bottom: .35rem;
}
.product-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    background: #fff;
    table-layout: fixed; /* répartition automatique des colonnes */
}
.product-tab-content td,
.product-tab-content th {
    padding: .75rem 1rem;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}
.product-tab-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--volmea-charcoal);
}

/* Bordure par défaut uniquement si aucun style inline ne gère la bordure.
   Les styles inline de TinyMCE (border: none, border: 1px solid…) prennent
   automatiquement la priorité sur les règles CSS, donc cette règle ne
   s'applique qu'en l'absence de toute déclaration de bordure inline. */
.product-tab-content table:not([style*="border"]) td:not([style*="border"]),
.product-tab-content table:not([style*="border"]) th:not([style*="border"]) {
    border: 1px solid #e0e0e0;
}

/* Colonnes à largeur égale selon le nombre (quand pas de style inline) */
.product-tab-content td:first-child:nth-last-child(2),
.product-tab-content td:first-child:nth-last-child(2) ~ td {
    width: 50%;
}
.product-tab-content td:first-child:nth-last-child(3),
.product-tab-content td:first-child:nth-last-child(3) ~ td {
    width: 33.33%;
}
.product-tab-content td:first-child:nth-last-child(4),
.product-tab-content td:first-child:nth-last-child(4) ~ td {
    width: 25%;
}

/* Images dans cellules : responsive sans débordement */
.product-tab-content table img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: var(--radius-sm);
}

/* SVG inline dans les contenus enrichis
   Surcharge la règle générale img (margin: 1.25rem 0 / border-radius) qui
   est faite pour les images bloc — les SVG servent souvent d'icônes inline. */
.product-tab-content img[src$=".svg"] {
    vertical-align: middle;
    margin: 0 .2rem;
    height: auto;
    border-radius: 0;
}

/* Classes d'alignement sélectionnables depuis TinyMCE (image_class_list) */
.product-tab-content img.svg-align-middle { vertical-align: middle; }
.product-tab-content img.svg-align-bottom { vertical-align: text-bottom; }
.product-tab-content img.svg-align-top    { vertical-align: text-top; }
.product-tab-content img.svg-inline       { vertical-align: -0.15em; display: inline; }

/* SVG utilisé comme illustration pleine largeur (pas inline) */
.product-tab-content img.svg-large {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
}

/* Mobile : scroll horizontal si le tableau est trop étroit */
@media (max-width: 575.98px) {
    .product-tab-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ═══════════════════════════════════════════════════════════
   TARTEAUCITRON — Personnalisation charte Volmea
   ═══════════════════════════════════════════════════════════ */

#tarteaucitronRoot #tarteaucitron {
    font-family: inherit !important;
}

#tarteaucitronRoot .tarteaucitronBtnWrapper #tarteaucitronPersonalize2,
#tarteaucitronRoot #tarteaucitronAllAllowed {
    background-color: #2d2d2d !important;
    color: #fff !important;
    border-radius: 4px !important;
}

#tarteaucitronRoot #tarteaucitronAllDenied2 {
    background-color: transparent !important;
    color: #2d2d2d !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 4px !important;
}

#tarteaucitronAlertBig {
    background-color: #fff !important;
    color: #2d2d2d !important;
    border-top: 2px solid #e8e0d4 !important;
}

#tarteaucitronDisclaimerAlert {
    color: #2d2d2d !important;
    font-size: 0.9rem !important;
}
