/* Minimal Phoenix compatibility subset extracted for CovetoOrderBundle */

/* Exact Phoenix tokens used by this lightweight compatibility layer */
:root {
    /*Définition des couleurs*/
    --couleur-marron: #310c1a;
    --couleur-marron-rgb: 49, 12, 26;
    --couleur-orange: #e84c1f;
    --couleur-orange-rgb: 232, 76, 31;
    --couleur-beige: #f6f0e9;
    --couleur-bleu: #afceee;
    --couleur-bleu-rgb: 175, 206, 238;
    --couleur-rose: #f9cdef;
    --couleur-rose-rgb: 249, 205, 239;
    --couleur-sable:#d5c1a7;
    --couleur-sable-rgb:213, 193, 167;
    --couleur-jaune: #f4efa8;
    --couleur-jaune-rgb: 244, 239, 168;
    --couleur-peche:#f8bf9b;
    --couleur-peche-rgb: 248, 191, 155;
    --couleur-vert: #aecebe;
    --couleur-vert-rgb: 174, 206, 190;
    /* Couleur des prix remises (promo, prix de gros, paliers) : classe utilitaire .text-prix */
    --couleur-prix: #25b003;
    /* Couleur des offres quantite ("2+1 offert") : pastille catalogue */
    --couleur-offre: #e84c1f;

    --couleur-grise-text: rgba(33, 37, 41, 0.5);
    --couleur-grise-bordure: #dee2e6;

    /*Police d'écriture*/
    --police_jakarta: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    --phoenix-body-bg: var(--couleur-beige);     /* fond principal sombre */
    --phoenix-navbar-top-bg-color: var(--couleur-marron); /* Menu */ 
    --phoenix-navbar-top-menu-bg-color: var(--couleur-marron); /* Menu */ 
    --phoenix-body-color: #000000;   /* Couleur du texte  */ 
    --phoenix-navbar-top-dropdown-color: var(--couleur-beige);   /* Couleur du texte du menu */ 
    --phoenix-font-sans-serif: var( --police_jakarta);
    --phoenix-body-font-family:  var( --police_jakarta);
    --phoenix-primary-dark:  var(--couleur-orange)!important;
    --phoenix-dark-rgb: 0, 0, 0;
    --phoenix-link-color: #000000; /*lien des liste*/
    --phoenix-border-radius: 0.5rem; /* etait fixe par erreur a une couleur (var(--couleur-orange)), ce qui invalidait tout border-radius: var(--phoenix-border-radius) (select, choices...) */
    --phoenix-primary: var(--couleur-orange)!important;
    --phoenix-secondary-bg: #ffffff!important;
    --phoenix-pagination-active-bg: var(--couleur-orange)!important;
    --phoenix-primary-dark-rgb: 232, 76, 31;
    --phoenix-primary-rgb : var(--couleur-orange-rgb);/* 49, 12, 26;*/
    --phoenix-bg-opacity:1 !important;
    --phoenix-light-rgb: var(--couleur-peche-rgb);

    /*le switch de David*/
    --phoenix-quaternary-bg: var(--couleur-sable);

    --phoenix-tertiary-color: #000000;
    --phoenix-choices-item-bg: var(--couleur-sable); /*selection d'un enregistrement dans une liste déroulante*/
    --phoenix-link-color-rgb: var(--couleur-marron-rgb); /*Couleur des liens*/
    --phoenix-link-hover-color-rgb: var(--couleur-marron-rgb); /* Couleur des liens cliqués*/
    --phoenix-kanban-bg: #FFFFFF; /*couleur planning*/
    --phoenix-primary-bg-subtle: var(--couleur-jaune); /*Nombre de client dans la salle d'attente*/
    --phoenix-primary-border-subtle: var(--couleur-jaune); /*Nombre de client dans la salle d'attente*/

    --phoenix-primary-text-emphasis: #003cc7;
    --phoenix-secondary-text-emphasis: #525b75;
    --phoenix-success-text-emphasis: #1c6c09;
    --phoenix-info-text-emphasis: #005585;
    --phoenix-warning-text-emphasis: #bc3803;
    --phoenix-danger-text-emphasis: #b81800;

    --phoenix-primary-bg-subtle: #e5edff;
    --phoenix-secondary-bg-subtle: #eff2f6;
    --phoenix-success-bg-subtle: #d9fbd0;
    --phoenix-info-bg-subtle: #c7ebff;
    --phoenix-warning-bg-subtle: #ffefca;
    --phoenix-danger-bg-subtle: #ffe0db;

    --phoenix-primary-border-subtle: #85a9ff;
    --phoenix-secondary-border-subtle: #cbd0dd;
    --phoenix-success-border-subtle: #90d67f;
    --phoenix-info-border-subtle: #60c6ff;
    --phoenix-warning-border-subtle: #ffcc85;
    --phoenix-danger-border-subtle: #f48270;

    --phoenix-primary-dark: #004dff;
    --phoenix-secondary-dark: #222834;
    --phoenix-success-dark: #23890b;
    --phoenix-info-dark: #0080c7;
    --phoenix-warning-dark: #d6630a;
    --phoenix-danger-dark: #cc1b00;

    /* Variables utilisees par ce fichier (var(--phoenix-*)) mais jamais definies : sans elles
       les regles ci-dessous deviennent invalides sur les sites qui n'ont pas le vrai theme
       Phoenix (Covetonet, coveto-test), d'ou l'apparence differente de MyVetApps2. Valeurs
       recuperees telles quelles depuis MyVetApps2/public/phoenix/assets/css/theme.css (mode
       clair), sauf celles marquees "aligne sur l'override" qui suivent une couleur deja
       personnalisee plus haut dans ce fichier. */
    --phoenix-link-hover-color: var(--couleur-marron); /* aligne sur --phoenix-link-hover-color-rgb deja personnalise */
    --phoenix-body-color-rgb: 0, 0, 0; /* aligne sur --phoenix-body-color: #000000 */
    --phoenix-body-highlight-color: #000000; /* aligne sur --phoenix-body-color: #000000 */
    --phoenix-body-highlight-color-rgb: 0, 0, 0;
    --phoenix-border-color: var(--couleur-sable); /* etait le bleu-gris Phoenix stock (#cbd0dd) : recolore ici la bordure par defaut des select/choices avec la couleur de marque utilisee ailleurs (boutons familles, filtre actif...) */
    --phoenix-border-color-translucent: rgba(203, 208, 221, 0.54);
    --phoenix-border-width: 1px;
    --phoenix-emphasis-bg: #fff;
    --phoenix-danger: #fa3b1d;
    --phoenix-success: #25b003;
    --phoenix-gray-100-rgb: 239, 242, 246;
    --phoenix-quaternary-color-rgb: 138, 148, 173;
    --phoenix-choices-inner-min-height: auto;
    --phoenix-choices-item-color: var(--phoenix-body-highlight-color);
    --phoenix-choices-item-has-no-choices-bg: var(--phoenix-emphasis-bg);
}

.btn-primary {
    background-color: var(--couleur-orange);
    border-color: var(--couleur-orange);
    color: var(--couleur-beige);
    /* Etats geres par le theme via variables (sinon bleu primaire Phoenix/Bootstrap), notamment
       le bouton desactive (ex: "Envoyer la commande" sur un panier vide). Prefixes phoenix
       (MyVetApps2) et bs (Bootstrap standard). */
    --phoenix-btn-hover-color: var(--couleur-beige);
    --phoenix-btn-hover-bg: var(--couleur-marron);
    --phoenix-btn-hover-border-color: var(--couleur-marron);
    --phoenix-btn-active-color: var(--couleur-beige);
    --phoenix-btn-active-bg: var(--couleur-marron);
    --phoenix-btn-active-border-color: var(--couleur-marron);
    --phoenix-btn-disabled-color: var(--couleur-marron);
    --phoenix-btn-disabled-bg: var(--couleur-beige);
    --phoenix-btn-disabled-border-color: var(--couleur-sable);
    --bs-btn-hover-color: var(--couleur-beige);
    --bs-btn-hover-bg: var(--couleur-marron);
    --bs-btn-hover-border-color: var(--couleur-marron);
    --bs-btn-active-color: var(--couleur-beige);
    --bs-btn-active-bg: var(--couleur-marron);
    --bs-btn-active-border-color: var(--couleur-marron);
    --bs-btn-disabled-color: var(--couleur-marron);
    --bs-btn-disabled-bg: var(--couleur-beige);
    --bs-btn-disabled-border-color: var(--couleur-sable);
}

.btn-link {
    --phoenix-btn-color: var(--phoenix-link-color);
    --phoenix-btn-hover-color: var(--phoenix-link-hover-color);
}
.btn-link:hover, .btn-link:focus-visible {
  text-decoration: underline;
}
.btn-link:focus-visible {
  color: var(--phoenix-btn-color);
}
.btn-link:hover {
  color: var(--phoenix-btn-hover-color);
}

.btn.btn-phoenix-primary,
.btn.btn-phoenix-secondary,
.btn.btn-phoenix-success,
.btn.btn-phoenix-warning {
    padding: 0.625rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--bs-border-radius, 0.375rem);
}
/* Bouton "nouveau" : même rendu que dans Flossie (user.min.css), fond blanc, texte orange.
   Sans ce style de base, le bouton était transparent hors Flossie et son padding ressemblait à un décalage du texte. */
.btn-phoenix-primary {
    color: var(--couleur-orange, #e84c1f);
    background-color: #fff;
    border-color: var(--couleur-beige, #f6f0e9);
}
.btn.btn-phoenix-primary {
    border-radius: 8px;
}
.btn-phoenix-primary:hover,
.btn-phoenix-primary:focus,
.btn-phoenix-primary:active,
.btn-phoenix-primary.active {
    color: var(--couleur-orange, #e84c1f);
    background-color: var(--couleur-beige, #f6f0e9);
    border-color: var(--couleur-sable, #d5c1a7);
}

.btn-phoenix-secondary {
    color: #31374a;
    background-color: #f5f7fa;
    border-color: #e3e6ed;
}
.btn-phoenix-secondary:hover,
.btn-phoenix-secondary:focus,
.btn-phoenix-secondary:active,
.btn-phoenix-secondary.active {
    color: var(--phoenix-secondary-dark);
    background-color: #e3e6ed;
    border-color: #e6e9ef;
}

.btn-phoenix-success {
    color: #25b003;
    background-color: #f5f7fa;
    border-color: #e3e6ed;
}
.btn-phoenix-success:hover,
.btn-phoenix-success:focus,
.btn-phoenix-success:active,
.btn-phoenix-success.active {
    color: var(--phoenix-success-dark);
    background-color: #e3e6ed;
    border-color: #e6e9ef;
}

.btn-phoenix-warning {
    color: #e5780b;
    background-color: #f5f7fa;
    border-color: #e3e6ed;
}
.btn-phoenix-warning:hover,
.btn-phoenix-warning:focus,
.btn-phoenix-warning:active,
.btn-phoenix-warning.active {
    color: var(--phoenix-warning-dark);
    background-color: #e3e6ed;
    border-color: #e6e9ef;
}

/* Favorite / red list toggle buttons */
.btn-wish {
    width: 2rem;
    height: 2rem;
    color: #fff;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
/* Override Bootstrap .btn which forces inline-block and its own padding */
.btn.btn-wish {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2rem !important;
    height: 2rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    flex-shrink: 0;
    line-height: 1;
}
/* Apparence "bouton" (bordure + fond) : reservee a l'offcanvas fiche produit. */
.btn.btn-wish.btn-wish-boxed {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6 !important;
    background-color: #fff !important;
    transition: border-color .15s ease, color .15s ease;
}
/* Le theme Phoenix complet positionne .product-card .btn-wish en absolute (coin haut droit) :
   on le garde dans le flux pour qu'il reste aligne avec les icones de la carte. */
.product-card .btn.btn-wish {
    position: static;
}
.btn.btn-wish:disabled,
.btn.btn-wish.is-pending {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Le theme Phoenix complet (ex: MyVetApps2) definit deja .btn-wish (rond, fond primary + icone
   blanche en !important sur hover/focus/active) : on neutralise avec .btn + !important. */
.btn.btn-wish.btn-wish-primary:hover,
.btn.btn-wish.btn-wish-primary:focus,
.btn.btn-wish.btn-wish-primary:active,
.btn.btn-wish.btn-wish-primary.active,
.btn.btn-wish.btn-wish-secondary:hover,
.btn.btn-wish.btn-wish-secondary:focus,
.btn.btn-wish.btn-wish-secondary:active,
.btn.btn-wish.btn-wish-secondary.active {
    background-color: transparent !important;
}
.btn.btn-wish.btn-wish-boxed.btn-wish-primary:hover,
.btn.btn-wish.btn-wish-boxed.btn-wish-primary:focus,
.btn.btn-wish.btn-wish-boxed.btn-wish-primary:active,
.btn.btn-wish.btn-wish-boxed.btn-wish-primary.active,
.btn.btn-wish.btn-wish-boxed.btn-wish-secondary:hover,
.btn.btn-wish.btn-wish-boxed.btn-wish-secondary:focus,
.btn.btn-wish.btn-wish-boxed.btn-wish-secondary:active,
.btn.btn-wish.btn-wish-boxed.btn-wish-secondary.active {
    background-color: #fff !important;
}

.btn.btn-wish.btn-wish-primary {
    color: #adb5bd !important;
}
.btn.btn-wish.btn-wish-primary:hover:not(:disabled),
.btn.btn-wish.btn-wish-primary:focus,
.btn.btn-wish.btn-wish-primary.active {
    color: #dc3545 !important;
}
.btn.btn-wish.btn-wish-boxed.btn-wish-primary.active {
    border-color: #dc3545 !important;
}

/* Liste noire button styles (noir pour ne pas se confondre avec le rouge des favoris) */
.btn.btn-wish.btn-wish-secondary {
    color: #adb5bd !important;
}
.btn.btn-wish.btn-wish-secondary:hover:not(:disabled),
.btn.btn-wish.btn-wish-secondary:focus,
.btn.btn-wish.btn-wish-secondary.active {
    color: #000 !important;
}
.btn.btn-wish.btn-wish-boxed.btn-wish-secondary.active {
    border-color: #000 !important;
}

/* Legacy soft alerts used in templates */
.alert-soft-success {
    color: var(--bs-success-text-emphasis, var(--phoenix-success-text-emphasis));
    background-color: var(--bs-success-bg-subtle, var(--phoenix-success-bg-subtle));
    border-color: var(--bs-success-border-subtle, var(--phoenix-success-border-subtle));
}
.alert-soft-warning {
    color: var(--bs-warning-text-emphasis, var(--phoenix-warning-text-emphasis));
    background-color: var(--bs-warning-bg-subtle, var(--phoenix-warning-bg-subtle));
    border-color: var(--bs-warning-border-subtle, var(--phoenix-warning-border-subtle));
}
.alert-soft-info {
    color: var(--bs-info-text-emphasis, var(--phoenix-info-text-emphasis));
    background-color: var(--bs-info-bg-subtle, var(--phoenix-info-bg-subtle));
    border-color: var(--bs-info-border-subtle, var(--phoenix-info-border-subtle));
}
.alert-soft-danger {
    color: var(--bs-danger-text-emphasis, var(--phoenix-danger-text-emphasis));
    background-color: var(--bs-danger-bg-subtle, var(--phoenix-danger-bg-subtle));
    border-color: var(--bs-danger-border-subtle, var(--phoenix-danger-border-subtle));
}

/* Phoenix filter offcanvas used on order index */
.phoenix-offcanvas {
    position: absolute;
    overflow: auto;
    top: 0;
    bottom: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}
.phoenix-offcanvas.phoenix-offcanvas-fixed {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
}
.phoenix-offcanvas.show {
    transform: none;
}
.phoenix-offcanvas.show ~ .phoenix-offcanvas-backdrop {
    position: fixed;
    top: var(--phoenix-navbar-top-height, 0);
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.1);
    z-index: 8;
}
.phoenix-offcanvas-filter {
    max-width: 300px;
    top: var(--phoenix-navbar-top-height, 0);
    height: calc(100vh - 5rem);
    padding: 2rem;
}
@media (min-width: 992px) {
    .phoenix-offcanvas-filter {
        position: sticky !important;
        top: 1rem !important;
        padding: 0 0 0 0.5rem !important;
        transform: none !important;
        height: calc(100vh - 2rem);
        padding-left: 4px;
    }
}

/* Swiper nav look from Phoenix */
.swiper-theme-container {
    position: relative;
}
.swiper-theme-container .swiper-nav {
    margin-top: 0;
    cursor: pointer;
}
.swiper-theme-container .swiper-nav [class*="swiper-"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--phoenix-border-color-translucent);
    transition: opacity 0.4s ease-in-out;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--phoenix-body-color);
    background-color: var(--phoenix-body-bg);
    box-shadow: 0 8px 24px -4px rgba(36, 40, 46, 0.12);
    z-index: 1;
    margin: 0;
}
.swiper-theme-container .swiper-nav .swiper-button-prev::after,
.swiper-theme-container .swiper-nav .swiper-button-next::after {
    content: "";
}
.swiper-theme-container .swiper-nav .swiper-button-prev {
    left: -1rem;
}
.swiper-theme-container .swiper-nav .swiper-button-next {
    right: -1rem;
}

.nav-icon {
    line-height: 1;
}

/* Typography/utilities frequently used in bundle templates */
.display-6 {
    font-size: calc(1.28125rem + 0.375vw);
    font-weight: 400;
    line-height: 1;
}
@media (min-width: 1200px) {
    .display-6 {
        font-size: 1.5625rem;
    }
}

.fs-8 {
    font-size: 1rem !important;
}
.fs-9 {
    font-size: 0.8rem !important;
}
.fs-10 {
    font-size: 0.64rem !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.text-body-highlight {
    --phoenix-text-opacity: 1;
    color: rgba(var(--phoenix-body-highlight-color-rgb), var(--phoenix-text-opacity)) !important;
}

.min-w-0 {
    min-width: 0;
}

.scrollbar {
    overflow: auto;
}
.scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.scrollbar::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: rgba(110, 120, 145, 0.45);
}

/* Product cards: tighter Phoenix-like typography and button sizing */
.product-card h5,
.product-card .h5 {
    font-size: 1rem;
}

.product-card h6,
.product-card .h6 {
    font-size: 0.8rem;
}

.product-card .btn,
.order-card-action .btn,
.order-cart-controls .btn,
.add-to-cart-btn.btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-card .btn-sm,
.bulk-buy-btn.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
}

.form-check-input:checked{
    background-color: var(--couleur-orange);
    border-color: var(--couleur-orange);
    -webkit-box-shadow: inset 0 1px 2px transparent, inset 0 0 0 30px var(--couleur-beige), 0 0 0 0.25rem rgba(var(--couleur-beige), 0.25);
}
.form-check-input:focus{
    border-color: var(--couleur-sable);
    -webkit-box-shadow: var(--couleur-sable-rgb);
}

.form-select:focus {
    border-color: var(--couleur-orange);
    outline: 0;
    -webkit-box-shadow: inset 0 1px 2px transparent, 0 0 0 0.25rem rgba(var(--couleur-orange-rgb), 0.25);
    box-shadow: inset 0 1px 2px transparent, 0 0 0 0.25rem rgba(var(--couleur-orange-rgb), 0.25);
}

/** Bouton Ajouter au panier */
.btn-perso-primary {
    color: var(--couleur-orange);
    background-color: #ffffff;
    border-color: var(--couleur-beige);
    border-radius: 8px;
    /* Etats geres par Bootstrap (.show d'un dropdown ouvert, :active, :focus-visible) : sans ces
       variables le fond devenait transparent au clic. Prefixe phoenix (theme MyVetApps2) et bs
       (Bootstrap standard) pour couvrir les deux hotes. */
    --phoenix-btn-active-color: var(--couleur-marron);
    --phoenix-btn-active-bg: var(--couleur-beige);
    --phoenix-btn-active-border-color: var(--couleur-sable);
    --phoenix-btn-hover-color: var(--phoenix-primary-dark);
    --phoenix-btn-hover-bg: var(--couleur-beige);
    --phoenix-btn-hover-border-color: var(--couleur-sable);
    --bs-btn-active-color: var(--couleur-marron);
    --bs-btn-active-bg: var(--couleur-beige);
    --bs-btn-active-border-color: var(--couleur-sable);
    --bs-btn-hover-color: var(--phoenix-primary-dark);
    --bs-btn-hover-bg: var(--couleur-beige);
    --bs-btn-hover-border-color: var(--couleur-sable);
}

.btn-perso-primary:disabled {
    color: #000000;
    background-color: var(--couleur-beige); 
    border-color: var(--couleur-beige); 
}

.btn-perso-primary:hover {
    color: var(--phoenix-primary-dark);
    background-color: var(--couleur-beige); 
    border-color: var(--couleur-sable); 
}

.btn-perso-primary:active {
    color: var(--couleur-marron);
    background-color: var(--couleur-beige); 
    border-color: var(--couleur-beige); 
    box-shadow: initial;
}

.btn-perso-primary:active {
    box-shadow: 0 0 0 0.25rem rgba(201, 213, 240, 0.25);
}

/** Bouton produit remplacé par ... */
.btn-perso-secondary {
    color: var(--color-grey);
    background-color: #ffffff;
    border-color: var(--couleur-beige);
    border-radius: 8px;
}

.btn-perso-secondary:hover,
.btn-perso-secondary:focus {
    border-color: var(--couleur-sable) !important;
}

.btn-perso-secondary:disabled {
    color: #000000;
    background-color: var(--couleur-beige); 
    border-color: var(--couleur-beige); 
}

.btn-perso-secondary:hover {
    background-color: var(--couleur-beige); 
    border-color: var(--color-grey); 
}

.btn-perso-secondary:active {
    color: var(--couleur-marron);
    background-color: var(--couleur-beige); 
    border-color: var(--couleur-beige); 
    box-shadow: initial;
}

.btn-perso-secondary:active {
    box-shadow: 0 0 0 0.25rem rgba(201, 213, 240, 0.25);
}


/* Badge family used by stock/price labels */
.badge-phoenix {
    text-transform: uppercase;
    padding: 2px 8px;
    background-color: var(--phoenix-badge-bg, var(--phoenix-secondary-bg-subtle));
    color: var(--phoenix-badge-color, var(--phoenix-secondary-text-emphasis));
    border: 1px solid var(--phoenix-badge-border-color, var(--phoenix-secondary-border-subtle));
}
.badge-phoenix-primary {
    --phoenix-badge-bg: var(--phoenix-primary-bg-subtle);
    --phoenix-badge-color: var(--phoenix-primary-text-emphasis);
    --phoenix-badge-border-color: var(--phoenix-primary-border-subtle);
}
.badge-phoenix-secondary {
    --phoenix-badge-bg: var(--phoenix-secondary-bg-subtle);
    --phoenix-badge-color: var(--phoenix-secondary-text-emphasis);
    --phoenix-badge-border-color: var(--phoenix-secondary-border-subtle);
}
.badge-phoenix-success {
    --phoenix-badge-bg: var(--phoenix-success-bg-subtle);
    --phoenix-badge-color: var(--phoenix-success-text-emphasis);
    --phoenix-badge-border-color: var(--phoenix-success-border-subtle);
}
.badge-phoenix-info {
    --phoenix-badge-bg: var(--phoenix-info-bg-subtle);
    --phoenix-badge-color: var(--phoenix-info-text-emphasis);
    --phoenix-badge-border-color: var(--phoenix-info-border-subtle);
}
.badge-phoenix-warning {
    --phoenix-badge-bg: var(--phoenix-warning-bg-subtle);
    --phoenix-badge-color: var(--phoenix-warning-text-emphasis);
    --phoenix-badge-border-color: var(--phoenix-warning-border-subtle);
}
.badge-phoenix-danger {
    --phoenix-badge-bg: var(--phoenix-danger-bg-subtle);
    --phoenix-badge-color: var(--phoenix-danger-text-emphasis);
    --phoenix-badge-border-color: var(--phoenix-danger-border-subtle);
}
.badge-phoenix .badge-label {
    display: inline-block;
    transform: translateY(0.0875rem);
}

.choices {
  font-family: var(--phoenix-font-sans-serif) !important;
}
.choices .choices__inner {
  border-radius: var(--phoenix-border-radius);
  line-height: 1.5rem !important;
  font-size: 1rem;
  background-color: var(--phoenix-emphasis-bg) !important;
  min-height: var(--phoenix-choices-inner-min-height) !important;
  background-size: 9px 12px;
  border: 1px solid var(--phoenix-border-color);
  padding: 6px 3.5rem 6px 1rem;
  -webkit-box-shadow: inset 0 1px 2px transparent;
  box-shadow: inset 0 1px 2px transparent;
  /* La lib (choices.min.css) met overflow:hidden ici (pensee pour un contenu sur une hauteur
     fixe) : un chip qui passe sur 2 lignes se fait alors rogner/replier de travers. */
  overflow: visible;
}
.choices .choices__input--cloned {
  padding: 0;
  font-size: 0.8rem;
  color: var(--phoenix-body-color);
  background-color: var(--phoenix-emphasis-bg) !important;
  vertical-align: top;
  margin-bottom: 0;
  /* Choices.js fixe en style inline min-width = longueur du placeholder (en ch) des la premiere
     saisie : avec un placeholder long ("Rechercher un principe actif") le champ deborde de la
     colonne de filtre. !important necessaire pour passer devant le style inline. */
  min-width: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}
/* Multi-select : le champ de recherche passe sur sa propre ligne sous les elements choisis
   au lieu de se caler a la suite du dernier. width inline aussi posee par Choices.js. */
.choices[data-type*=select-multiple] .choices__input--cloned {
  display: block;
  width: 100% !important;
}
.choices .choices__input--cloned::-webkit-input-placeholder {
  color: rgba(var(--phoenix-quaternary-color-rgb), 0.8);
}
.choices .choices__input--cloned::-moz-placeholder {
  color: rgba(var(--phoenix-quaternary-color-rgb), 0.8);
}
.choices .choices__input--cloned:-ms-input-placeholder {
  color: rgba(var(--phoenix-quaternary-color-rgb), 0.8);
}
.choices .choices__input--cloned::-ms-input-placeholder {
  color: rgba(var(--phoenix-quaternary-color-rgb), 0.8);
}
.choices .choices__input--cloned::placeholder {
  color: rgba(var(--phoenix-quaternary-color-rgb), 0.8);
}
.choices .choices__list--dropdown {
  border: 1px solid var(--phoenix-border-color-translucent) !important;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  background-color: var(--phoenix-emphasis-bg);
  z-index: 1000;
}
.choices .choices__list--dropdown .choices__item--selectable {
  padding: 2px 1rem;
  padding-right: 20px;
  font-size: 1rem !important;
  background-color: var(--phoenix-secondary-bg);
  color: var(--phoenix-body-color);
}
.choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: var(--couleur-sable);
  color: #000;
}
.choices .choices__list {
  margin-top: 0 !important;
}
.choices .choices__list .has-no-choices {
  background-color: var(--phoenix-choices-item-has-no-choices-bg);
}
.choices .choices__list--multiple .choices__item {
  /* La lib Choices.js (choices.min.css) met word-break:break-all sur ce chip : un long libelle
     sans espace (ex. "ACETATE D'ALPHA-TOCOPHERYL") casse alors au milieu du mot. On repasse en
     coupure normale (aux espaces/traits d'union) ; overflow-wrap en filet de securite si un
     "mot" isole est malgre tout plus large que le panneau. display reste inline-block (comme la
     lib) : passer en inline-flex + nowrap faisait deborder le chip et masquait le bouton (x). */
  display: inline-block;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
  padding: 2.5px 8px !important;
  font-size: 0.64rem !important;
  border: 1px solid var(--couleur-orange);
  background-color: transparent !important;
  border-radius: 4px;
  margin-bottom: 0 !important;
  color: var(--couleur-orange);
  font-weight: 400;
  line-height: 1.3;
}
.choices .choices__list--single {
  white-space: nowrap;
  padding: 0 !important;
}
.choices .choices__list--single .choices__button {
  background-color: transparent !important;
}

.choices[data-type*=select-multiple] .choices__button,
.choices[data-type*=text] .choices__button {
  /* Meme icone que la lib (feather "x"), recoloree en orange pour matcher le chip ; separateur
     vertical avant la croix pour bien la distinguer du texte du chip. On fixe une taille de
     boite explicite + centrage automatique (background-origin: content-box + position: center)
     plutot que de calculer un decalage en px a la main : ca ne depend plus de la largeur reelle
     du bouton (heritee de la lib, pas toujours celle qu'on croit), qui faisait disparaitre ou
     chevaucher l'icone selon la valeur choisie. */
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNlODRjMWYiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0iZmVhdGhlciBmZWF0aGVyLXgiPjxsaW5lIHgxPSIxOCIgeTE9IjYiIHgyPSI2IiB5Mj0iMTgiPjwvbGluZT48bGluZSB4MT0iNiIgeTE9IjYiIHgyPSIxOCIgeTI9IjE4Ij48L2xpbmU+PC9zdmc+);
  background-color: transparent !important;
  background-repeat: no-repeat;
  background-origin: content-box;
  background-position: center;
  background-size: 10px !important;
  width: 14px;
  height: 14px;
  box-sizing: content-box;
  margin: 0;
  margin-left: 8px;
  padding: 0 !important;
  padding-left: 8px !important;
  border: none;
  border-left: 1px solid var(--couleur-orange);
}

.choices[data-type*=select-one] .choices__input {
  padding-left: 1rem;
  padding-right: 1rem;
}
.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 5px !important;
}

.is-focused .choices__inner,
.is-open .choices__inner {
  border-radius: 0.375rem !important;
  border-color: var(--couleur-orange) !important;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(232, 76, 31, 0.25) !important;
  box-shadow: 0 0 0 0.25rem rgba(232, 76, 31, 0.25) !important;
  outline: 0;
}

.choices-select-container {
  position: relative;
}
.choices-select-container .choices__inner {
  padding-left: 2.5rem;
}
.choices-select-container .choices-icon {
  position: absolute;
  left: 1rem;
}

.choices__item .choices__item--choice .has-no-results {
  background-color: red !important;
}

.was-validated .choices.valid .choices__inner {
  border-color: var(--phoenix-success) !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2325b003' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated .choices[data-type=select-one].valid .choices__inner {
  background-position: right calc(0.375em + 1.55rem) center;
}
.was-validated .choices.invalid {
  margin-bottom: 0;
}
.was-validated .choices.invalid .choices__inner {
  border-color: var(--phoenix-danger) !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23fa3b1d'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23fa3b1d' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated .choices.invalid + .invalid-feedback {
  display: block;
}
.was-validated .choices[data-type=select-one].invalid .choices__inner {
  background-position: right calc(0.375em + 1.55rem) center;
}
.was-validated .choices[data-type*=select-one] .choices__button {
  margin-right: 60px !important;
}
.was-validated .choices[data-type*=select-one] .choices__inner {
  padding-bottom: 6px !important;
}

.form-floating-advance-select > label {
  color: rgba(var(--phoenix-body-color-rgb), 0.65);
  padding-top: 0.25rem;
}

.form-floating-advance-select .choices__inner {
  padding-top: 1rem;
}

.form-select {
  --phoenix-form-select-bg-img: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDE1MCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik03NS4zNDggMTI3LjE5MkM3Mi40MzgxIDEyNy4xOTIgNjkuODUxNCAxMjYuMjIyIDY3LjkxMTUgMTI0LjI4Mkw1LjgzMjE1IDYyLjIwMjNDMS42Mjg4NyA1OC4zMjIzIDEuNjI4ODcgNTEuNTMyNCA1LjgzMjE1IDQ3LjY1MjVDOS43MTIxMSA0My40NDkyIDE2LjUwMiA0My40NDkyIDIwLjM4MiA0Ny42NTI1TDc1LjM0OCAxMDIuMjk1TDEyOS45OTEgNDcuNjUyNUMxMzMuODcxIDQzLjQ0OTIgMTQwLjY2MSA0My40NDkyIDE0NC41NDEgNDcuNjUyNUMxNDguNzQ0IDUxLjUzMjQgMTQ4Ljc0NCA1OC4zMjIzIDE0NC41NDEgNjIuMjAyM0w4Mi40NjEzIDEyNC4yODJDODAuNTIxMyAxMjYuMjIyIDc3LjkzNDcgMTI3LjE5MiA3NS4zNDggMTI3LjE5MloiIGZpbGw9IiMzMTM3NEEiLz4KPC9zdmc+Cg==");
  display: block;
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.49;
  color: var(--phoenix-body-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--phoenix-emphasis-bg);
  background-image: var(--phoenix-form-select-bg-img), var(--phoenix-form-select-bg-icon, none);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 9px 12px;
  border: var(--phoenix-border-width) solid var(--phoenix-border-color);
  border-radius: var(--phoenix-border-radius);
  -webkit-box-shadow: inset 0 1px 2px transparent;
  box-shadow: inset 0 1px 2px transparent;
  -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
  -o-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .form-select {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
}
.form-select:focus {
  border-color: var(--couleur-orange);
  outline: 0;
  -webkit-box-shadow: inset 0 1px 2px transparent, 0 0 0 0.25rem rgba(232, 76, 31, 0.25);
  box-shadow: inset 0 1px 2px transparent, 0 0 0 0.25rem rgba(232, 76, 31, 0.25);
}
.form-select[multiple], .form-select[size]:not([size="1"]) {
  padding-right: 1rem;
  background-image: none;
}
.form-select:disabled {
  background-color: rgba(var(--phoenix-gray-100-rgb), 0.7);
}
.form-select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 var(--phoenix-body-color);
}

.form-select-sm {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  padding-left: 1rem;
  font-size: 0.8rem;
  border-radius: 0.375rem;
}

.form-select-lg {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}

.text-success {
  color: var(--couleur-vert) !important;
}

/* Prix remises (promo, prix de gros, paliers) : couleur pilotee par --couleur-prix */
.text-prix {
  color: var(--couleur-prix) !important;
}

[data-bs-theme=dark] .form-select {
  --phoenix-form-select-bg-img: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMiAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTAuNTI1MkM1Ljc3NSAxMC41MjUyIDUuNTc1IDEwLjQ1MDIgNS40MjUgMTAuMzAwMkwwLjYyNSA1LjUwMDJDMC4zIDUuMjAwMiAwLjMgNC42NzUyIDAuNjI1IDQuMzc1MkMwLjkyNSA0LjA1MDIgMS40NSA0LjA1MDIgMS43NSA0LjM3NTJMNiA4LjYwMDJMMTAuMjI1IDQuMzc1MkMxMC41MjUgNC4wNTAyIDExLjA1IDQuMDUwMiAxMS4zNSA0LjM3NTJDMTEuNjc1IDQuNjc1MiAxMS42NzUgNS4yMDAyIDExLjM1IDUuNTAwMkw2LjU1IDEwLjMwMDJDNi40IDEwLjQ1MDIgNi4yIDEwLjUyNTIgNiAxMC41MjUyWiIgZmlsbD0iIzhBOTRBRCIvPgo8L3N2Zz4K");
}

/* ==========================================================================
   Integration dans le theme Phoenix complet (MyVetApps2)
   --------------------------------------------------------------------------
   Covetonet = Bootstrap 5.3.3 + ce fichier ; MyVetApps2 = theme Phoenix complet + ce fichier.
   Phoenix redefinit les composants Bootstrap avec d'autres valeurs (tailles, graisses, paddings,
   arrondis). On remet ici les valeurs Bootstrap, uniquement dans la zone de page de MyVetApps2
   (.content, absente de Covetonet : sans effet la-bas, et la nav de MyVetApps2 n'est pas touchee).
   :where() garde une specificite minimale : les regles plus precises du bundle restent prioritaires.
   ========================================================================== */
:where(.content) {
    /* user.min.css de MyVetApps2 affecte une couleur a cette variable (valeur invalide = aucun
       arrondi) : on reprend la valeur du :root ci-dessus, celle de Covetonet. */
    --phoenix-border-radius: 0.5rem;
    line-height: 1.5;
}

/* Titres */
:where(.content) :is(h1, h2, h3, h4, h5, h6),
:where(.content) :is(.h1, .h2, .h3, .h4, .h5, .h6) {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    /* Bootstrap : les titres heritent de la couleur du parent (Phoenix : --phoenix-heading-color) */
    color: inherit;
}
:where(.content) h1, :where(.content) .h1 { font-size: calc(1.375rem + 1.5vw); }
:where(.content) h2, :where(.content) .h2 { font-size: calc(1.325rem + 0.9vw); }
:where(.content) h3, :where(.content) .h3 { font-size: calc(1.3rem + 0.6vw); }
:where(.content) h4, :where(.content) .h4 { font-size: calc(1.275rem + 0.3vw); }
:where(.content) h5, :where(.content) .h5 { font-size: 1.25rem; }
:where(.content) h6, :where(.content) .h6 { font-size: 1rem; }
@media (min-width: 1200px) {
    :where(.content) h1, :where(.content) .h1 { font-size: 2.5rem; }
    :where(.content) h2, :where(.content) .h2 { font-size: 2rem; }
    :where(.content) h3, :where(.content) .h3 { font-size: 1.75rem; }
    :where(.content) h4, :where(.content) .h4 { font-size: 1.5rem; }
}
:where(.content) :is(small, .small) {
    font-size: 0.875em;
}

/* Groupes de boutons radio (.btn-check + label) : Phoenix n'aplatit le bord gauche que derriere
   un element qui n'est pas un .btn-check, donc jamais ici. Regle Bootstrap : arrondi global au
   groupe, bords interieurs droits et bordures fusionnees. */
:where(.content) .btn-group > :not(.btn-check:first-child) + .btn {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* user.min.css de MyVetApps2 remet un border-radius: 8px sur ces boutons (meme specificite) */
:where(.content) .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Boutons (.btn-sm / .btn-lg apres .btn pour garder leur priorite) */
:where(.content) .btn {
    --phoenix-btn-padding-x: 0.75rem;
    --phoenix-btn-padding-y: 0.375rem;
    --phoenix-btn-font-size: 1rem;
    --phoenix-btn-font-weight: 400;
    --phoenix-btn-line-height: 1.5;
    --phoenix-btn-border-radius: 0.375rem;
}
:where(.content) .btn-sm {
    --phoenix-btn-padding-x: 0.5rem;
    --phoenix-btn-padding-y: 0.25rem;
    --phoenix-btn-font-size: 0.875rem;
    --phoenix-btn-border-radius: 0.25rem;
}
:where(.content) .btn-lg {
    --phoenix-btn-padding-x: 1rem;
    --phoenix-btn-padding-y: 0.5rem;
    --phoenix-btn-font-size: 1.25rem;
    --phoenix-btn-border-radius: 0.5rem;
}

/* Badges */
:where(.content) .badge {
    --phoenix-badge-padding-x: 0.65em;
    --phoenix-badge-padding-y: 0.35em;
    --phoenix-badge-border-radius: 0.375rem;
}

/* Formulaires (.form-select est deja defini plus haut, identique sur les deux sites) */
:where(.content) .form-control,
:where(.content) .input-group-text {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 0.375rem;
}
:where(.content) .form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}
:where(.content) .form-label {
    /* Phoenix : majuscules + retrait de 1rem + marge nulle */
    padding-left: 0;
    margin-bottom: 0.5rem;
    line-height: inherit;
    text-transform: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
:where(.content) .form-check {
    min-height: 1.5rem;
    margin-bottom: 0.125rem;
}
:where(.content) .form-check-label {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Cartes */
:where(.content) .card {
    --phoenix-card-spacer-y: 1rem;
    --phoenix-card-spacer-x: 1rem;
    --phoenix-card-title-spacer-y: 0.5rem;
    --phoenix-card-border-radius: 0.375rem;
    --phoenix-card-inner-border-radius: calc(0.375rem - 1px);
    --phoenix-card-cap-padding-y: 0.5rem;
    --phoenix-card-cap-padding-x: 1rem;
}

/* Menus deroulants */
:where(.content) .dropdown-menu {
    --phoenix-dropdown-padding-y: 0.5rem;
    --phoenix-dropdown-font-size: 1rem;
    --phoenix-dropdown-border-radius: 0.375rem;
    --phoenix-dropdown-inner-border-radius: calc(0.375rem - 1px);
    --phoenix-dropdown-item-padding-y: 0.25rem;
    --phoenix-dropdown-box-shadow: none;
}

/* Alertes, modales, fil d'Ariane */
:where(.content) .alert {
    --phoenix-alert-padding-x: 1rem;
    --phoenix-alert-padding-y: 1rem;
    --phoenix-alert-border-radius: 0.375rem;
}
:where(.content) .modal {
    --phoenix-modal-border-radius: 0.5rem;
    --phoenix-modal-inner-border-radius: calc(0.5rem - 1px);
    --phoenix-modal-title-line-height: 1.5;
}
/* user.min.css de MyVetApps2 met les titres de modale en "Moret-book" 1.6rem, et Phoenix leur
   impose --phoenix-secondary-color : on herite de l'en-tete comme Bootstrap. */
:where(.content) .modal-title {
    color: inherit;
    margin-bottom: 0;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
}
:where(.content) .breadcrumb {
    --phoenix-breadcrumb-font-size: inherit;
}

/* Texte secondaire : gris Bootstrap (Phoenix utilise un bleu-gris plus fonce) */
:where(.content) .text-body-secondary {
    color: rgba(33, 37, 41, 0.75) !important;
}
