/* ============================================================
   Corners - styles partages des vignettes et fiches produit DEV
   Compatible avec autoload/fonctions_corners.php
   Les couleurs des badges HTML sont definies par la configuration.
   ============================================================ */

/* Contenu genere par afficherCorner() : badge HTML/CSS. */
.corner-html-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

/* Reserve la place du corner absent, sans afficher de visuel. */
.corner-empty {
    display: inline-block;
    width: 1px;
    height: 27px;
    visibility: hidden;
}

/* Image historique : nom de classe conserve pour compatibilite PHP. */
.pro-diap-corner-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 112px;
    max-height: 32px;
    object-fit: contain;
}

/* Conteneur du corner dans la vignette liste DEV. */
.pro-liste-corner {
    display: flex;
    align-items: center;
    min-height: 27px;
    min-width: 0;
}

.pro-liste-corner > a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    text-decoration: none;
}

@media (max-width: 650px) {
    .corner-html-badge {
        padding: 4px 6px;
        font-size: 10px;
    }

    .pro-diap-corner-img {
        max-width: 95px;
    }
}









/* ==========================================
   FICHE PRODUIT - CORNERS DEV
   ========================================== */

.fiche-dev-corners {
    min-height: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

/* Corner image historique */

.fiche-dev-corner-image {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.fiche-dev-corner-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Corner HTML/CSS */

.fiche-dev-corner-html {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
}

.fiche-dev-corner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.fiche-dev-corner-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.fiche-dev-corner-label {
    display: inline-block;
}

/* Pourcentages de réduction */

.fiche-dev-corner-remise {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.fiche-dev-remise-vf {
    background: #dc3545;
    color: #fff;
}

.fiche-dev-remise-desto {
    background: #ffc107;
    color: #212529;
}



/* ==========================================
   CORNER SOLDE - FICHE PRODUIT DEV
   ========================================== */

.fiche-dev-corner {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.fiche-dev-corner .corner-html-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.fiche-dev-corner .pro-diap-corner-img {
    display: block;
    max-width: 100%;
    height: auto;
}
