.article-card {
    height: auto;
    padding: 0;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}
.article-card:hover {
    box-shadow:
        0 6px 0 var(--beige-fonce),
        0 10px 20px rgba(0, 0, 0, 0.18) !important;
}

.article-card.article-stock--rupture:hover {
    transform: none;
    box-shadow:
        0 4px 0 var(--beige-fonce),
        0 6px 14px rgba(0, 0, 0, 0.12);
}

.article-card-content {
    display: flex;
    gap: 8px;
    align-items: stretch;
    height: 160px;
}

.article-card .img-placeholder {
    flex: 0 0 120px;
    width: 120px;
    height: 160px;
    background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0 10px, transparent 10px 20px), var(--beige-fonce);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-right: 2px dashed var(--or-terne);
    position: relative;
}

.article-card .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.article-card .img-placeholder svg {
    width: 46px;
    height: 46px;
    opacity: 0.55;
}
.article-card .card-body {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    overflow: visible;
    min-width: 0;
}
.article-card .article-nom {
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
    color: var(--brun-nuit);
    display: block;
    overflow: visible;
    text-overflow: unset;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}
.article-card p {
    font-size: 13px;
    color: var(--brun-cuir);
    line-height: 1.4;
    margin: 0;
    overflow: visible;
    text-overflow: unset;
}

.article-card .article-rarete,
.article-card .article-serie,
.article-card .article-stock {
    flex: none;
}

.article-card .article-serie {
    color: var(--brun-cuir);
}

.article-card .article-stock {
    margin-top: auto;
}

.article-card .article-rarete {
    font-weight: bold;
}
.article-card.article-stock--rupture {
    filter: grayscale(90%) contrast(0.9);
    border-style: dashed;
    opacity: 0.6;
    transition:
        filter 0.25s ease,
        opacity 0.25s ease;
}
.article-card.article-stock--last {
    opacity: 0.95;
}
.article-card.article-stock--rupture:hover {
    filter: none;
    opacity: 1;
}
.article-card.article-stock--last {
    border-style: dashed;
}

/* Socle card border accents */
.article-card.article-socle-dore {
    border-color: var(--or) !important;
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.04),
        0 6px 18px rgba(250, 200, 60, 0.06);
}
.article-card.article-socle-rouge {
    border-color: var(--rouge-banni) !important;
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.04),
        0 6px 18px rgba(200, 40, 40, 0.06);
}

/* image placeholder border-right accents for socles */
.article-card.article-socle-dore .img-placeholder {
    border-right-color: var(--or) !important;
}
.article-card.article-socle-rouge .img-placeholder {
    border-right-color: var(--rouge-banni) !important;
}
.article-card .article-nom--rarete-unique,
.article-card .article-nom--rarete-commun,
.article-card .article-nom--rarete-triple,
.article-card .article-nom--rarete-banni,
.article-card .article-nom--socle-rouge,
.article-card .article-nom--socle-dore,
.article-modal-header .article-nom--rarete-unique,
.article-modal-header .article-nom--rarete-commun,
.article-modal-header .article-nom--rarete-triple,
.article-modal-header .article-nom--rarete-banni,
.article-modal-header .article-nom--socle-rouge,
.article-modal-header .article-nom--socle-dore {
    color: inherit;
}
.article-card .article-nom--rarete-unique,
.article-modal-header .article-nom--rarete-unique {
    color: var(--or) !important;
}
.article-card .article-nom--rarete-commun,
.article-modal-header .article-nom--rarete-commun {
    color: #fff;
    -webkit-text-stroke: 0.5px #1a1210;
    text-shadow:
        -1px -1px 0 #1a1210,
        1px -1px 0 #1a1210,
        -1px 1px 0 #1a1210,
        1px 1px 0 #1a1210;
}
.article-card .article-rarete.article-nom--rarete-commun,
.article-modal-header .article-rarete.article-nom--rarete-commun {
    -webkit-text-stroke: 0;
}
.article-card .article-nom--rarete-triple,
.article-modal-header .article-nom--rarete-triple {
    color: #1f1f1f !important;
}
.article-card .article-nom--rarete-banni,
.article-modal-header .article-nom--rarete-banni {
    color: var(--rouge-banni) !important;
}
.article-card .article-nom--socle-rouge,
.article-modal-header .article-nom--socle-rouge {
    color: #7a1414;
    letter-spacing: 0.3px;
    padding-bottom: 3px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #5c0f0f, #d63a2c 50%, #5c0f0f) 1;
    animation: emberGlow 2.6s ease-in-out infinite;
}
.article-card .article-rarete.article-nom--socle-rouge,
.article-modal-header .article-rarete.article-nom--socle-rouge {
    color: #7a1414;
    letter-spacing: 0.3px;
    padding-bottom: 0;
    border-bottom: none;
}
.article-card .article-nom--socle-dore,
.article-modal-header .article-nom--socle-dore {
    background: linear-gradient(100deg, var(--or-terne) 0%, var(--or-clair) 25%, #fff8e0 45%, var(--or) 65%, var(--or-clair) 85%, var(--or-terne) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-bottom: 3px solid var(--or);
    padding-bottom: 2px;
    animation: foilShine 5s linear infinite;
}
.article-card .article-rarete.article-nom--socle-dore,
.article-modal-header .article-rarete.article-nom--socle-dore {
    border-bottom: none;
    padding-bottom: 0;
}

@keyframes foilShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 220% center;
    }
}

.article-card-eye,
.wishlist-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.15s ease;
}

.article-card-eye {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
    color: var(--brun-nuit);
    opacity: 0.75;
}

.article-card:hover .article-card-eye {
    opacity: 1;
    background: #fff;
}

.wishlist-heart {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    border: none;
    color: var(--brun-cuir);
    cursor: pointer;
}

.wishlist-heart svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition:
        fill 0.2s ease,
        stroke 0.2s ease;
}

.article-card .img-placeholder .article-card-eye svg,
.article-card .img-placeholder .wishlist-heart svg {
    width: 24px;
    height: 24px;
    opacity: 1;
}

.wishlist-heart:hover {
    background: #fff;
    transform: scale(1.08);
}

.wishlist-heart.is-active {
    color: #e63946;
}

.wishlist-heart.is-active svg {
    fill: #e63946;
    stroke: #e63946;
}

.wishlist-heart.pulse {
    animation: wishlist-pulse 0.35s ease;
}

@keyframes wishlist-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
.wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--brun-cuir);
    background: transparent;
    color: var(--brun-cuir);
    cursor: pointer;
    width: fit-content;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.wishlist-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition:
        fill 0.2s ease,
        stroke 0.2s ease;
}

.wishlist-btn:hover {
    background: var(--beige);
    transform: scale(1.02);
}

.wishlist-btn.is-active {
    border-color: #e63946;
    color: #e63946;
}

.wishlist-btn.is-active svg {
    fill: #e63946;
    stroke: #e63946;
}

.wishlist-btn.pulse {
    animation: wishlist-pulse 0.35s ease;
}

.article-modal[hidden] {
    display: none;
}

.article-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.article-modal-content {
    position: relative;
    background: var(--beige);
    border: 2px solid var(--or);
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--brun-nuit);
}
.article-modal-header {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.article-modal-image {
    flex: 0 0 110px;
    display: flex;
    background: var(--beige-fonce);
    border-radius: 8px;
    border: 2px dashed var(--or-terne);
    padding: 6px;
}

.article-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-modal-infos {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 3px;
}

.article-modal-infos p {
    margin: 0;
    font-size: 13px;
    color: var(--brun-cuir);
    line-height: 1.3;
}

.article-modal-infos h2 {
    margin: 2px 0;
}

.article-price-inline {
    font-weight: 600;
    color: var(--brun-cuir);
    font-size: 13px;
}

body.modal-open {
    overflow: hidden;
}

.article-modal-availability {
    margin-top: 4px;
}

.availability-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--brun-nuit);
    font-size: 14px;
    margin-bottom: 8px;
    /* position: relative retiré, plus nécessaire */
}

.info-icon {
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.info-icon:hover {
    color: var(--brun-nuit);
}

.info-tooltip {
    width: 100%;
    background: #fff;
    border: 1px solid var(--beige-fonce);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    margin-bottom: 10px;
}

.info-tooltip ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12.5px;
    font-weight: normal;
    line-height: 1.5;
    color: var(--encre);
}

.info-tooltip-footer {
    font-size: 11px;
    margin: 0;
}

.etat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.etat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--beige-fonce);
    border-radius: 6px;
    font-size: 13.5px;
}

.etat-label {
    font-weight: 600;
    color: var(--brun-nuit);
}

.etat-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etat-right .qty-badge {
    margin-bottom: 0;
}

.etat-price {
    font-weight: 700;
    color: var(--brun-cuir);
    font-size: 13px;
}

.article-rupture-message {
    font-size: 14px;
    color: var(--brun-cuir);
    line-height: 1.5;
    margin: 4px 0 0;
}

.article-rupture-message a {
    color: var(--or);
    font-weight: 700;
    text-decoration: underline;
}

.article-rupture-message a:hover {
    color: var(--brun-nuit);
}

.article-modal-categorie {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Grandstander', cursive;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brun-nuit);
    background: var(--or-clair);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}

.article-langue-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.article-langue-line {
    margin: 0;
}

.article-page-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--brun-cuir);
    text-decoration: none;
}

.article-page-link:hover {
    color: var(--or);
    text-decoration: underline;
}
.article-modal-page-link {
    display: block;
    text-align: right;
    margin-top: 14px;
    font-weight: 600;
    color: var(--brun-cuir);
    text-decoration: none;
}

.article-modal-page-link:hover {
    color: var(--or);
    text-decoration: underline;
}

.article-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--beige);
    border: 2px solid var(--or);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow:
        0 4px 0 var(--beige-fonce),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-hero-image {
    position: relative;
    flex: 0 0 260px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0 10px, transparent 10px 20px), var(--beige-fonce);
    border-radius: 10px;
    border: 2px dashed var(--or-terne);
    padding: 16px;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.article-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-hero-nom {
    font-size: 28px;
    margin: 0;
    color: var(--brun-nuit);
}

.article-hero-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--brun-cuir);
}

.article-hero-availability {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--beige-fonce);
}

.article-hero-price {
    font-family: 'Grandstander', cursive;
    font-size: 22px;
    color: var(--brun-cuir);
    margin: 0 0 10px;
}

.article-related h2 {
    font-family: 'Grandstander', cursive;
    color: var(--brun-nuit);
    font-size: 20px;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .article-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-hero-meta {
        align-items: center;
    }
}

.article-price {
    position: relative;
    margin-top: 0.4rem;
}

.article-price-toggle {
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    color: var(--brun-cuir);
    cursor: pointer;
}

.article-price-toggle:hover {
    color: var(--or);
}

.article-price-detail {
    display: none;
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    min-width: 160px;
    margin-top: 0.3rem;
    padding: 0.5rem 0.7rem;
    background: #fff;
    border: 1px solid var(--beige);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
}

.article-price-detail li {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.15rem 0;
    font-size: 0.85rem;
}

/* Hover uniquement sur les appareils qui supportent vraiment le hover (desktop) */
@media (hover: hover) {
    .article-price:hover .article-price-detail {
        display: block;
    }
}

.article-categorie-ribbon {
    position: absolute;
    top: 10px;
    left: -6px;
    background: var(--brun-nuit);
    color: var(--or-clair);
    font-family: 'Grandstander', cursive;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px 3px 10px;
    border-radius: 0 4px 4px 0;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-footer .qty-badge {
    margin-bottom: 0;
}

.article-saison,
.article-serie {
    margin: 0;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap;
    padding-right: 4px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.card {
    background: var(--beige);
    border: 2px solid var(--or);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    box-shadow:
        0 4px 0 var(--beige-fonce),
        0 6px 14px rgba(0, 0, 0, 0.12);
}

.qty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 11px;
    line-height: 16px;
    padding: 3px 8px;
    margin-bottom: 8px;
    border-radius: 50px;
    border: 1px solid;
}
.qty-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.qty-badge--stock {
    background: #e1ecd9;
    color: #3c6b32;
    border-color: #8bb877;
}
.qty-badge--last {
    background: #fff4e6;
    color: #b45a00;
    border-color: #f0a040;
}
.qty-badge--rupture {
    background: #e6e0d2;
    color: #71644a;
    border-color: #b3a789;
}
.qty-badge--demand {
    background: #e8e0f2;
    color: #5d467b;
    border-color: #b69dcc;
}
.qty-badge--restock {
    background: #e6e0d2;
    color: #71644a;
    border-color: #b3a789;
}
.badge-caption {
    font-family: 'Kalam', cursive;
    font-size: 12px;
    color: var(--brun-cuir);
    text-align: center;
    margin-top: 8px;
}
.badge-showcase {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.badge-showcase > div {
    text-align: center;
}

.article-categorie-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--beige);
    color: var(--brun-nuit);
    margin-bottom: 0.3rem;
}
