html {
    scrollbar-gutter: stable;
}

h1 .badge {
    font-size: 0.35em;
    vertical-align: middle;
    padding: 0.3em 0.6em;
}

h1 .h1-actions {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.35em;
    font-weight: 400;
}

h1 {
    position: relative;
}

.collection-help {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--or-terne);
    border-radius: 20px;
    background: var(--beige);
    color: var(--brun-cuir);
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(75, 48, 30, 0.12);
    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.collection-help svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.collection-help:hover,
.collection-help:focus-visible {
    background: var(--or);
    color: var(--brun-nuit);
    transform: translateY(-1px);
}

.collection-help:focus-visible {
    outline: 3px solid var(--or-clair);
    outline-offset: 2px;
}

.collection-help-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

h1 .h1-actions button {
    font-size: 1em;
    padding: 8px 14px;
}

@media (max-width: 991px) {
    h1 .h1-actions {
        position: static;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 8px;
    }
}

/* === ONGLETS === */
.collection-tabs {
    display: flex;
    gap: 0;
    background: linear-gradient(180deg, var(--brun-cuir) 0%, var(--brun-nuit) 100%);
    padding: 5px 8px 0;
    border-bottom: 3px solid var(--or);
    border-radius: 4px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 10px 22px 9px;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 15px;
    color: var(--beige-clair);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--or-clair);
}

.tab-btn.active {
    background: rgba(201, 154, 60, 0.14);
    border-bottom-color: var(--or-clair);
    color: var(--or-clair);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* === TOOLBAR (partage) === */
.collection-toolbar {
    position: sticky;
    top: 52px;
    height: 0;
    margin: 0;
    z-index: 50;
}

.btn-icon {
    font-size: 15px;
    line-height: 1;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--brun-cuir);
    background: var(--beige-clair);
    color: var(--brun-cuir);
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    border-color: var(--or);
    color: var(--or-terne);
}

.btn-toggle.active {
    border-color: var(--or-terne);
    color: var(--brun-nuit);
    box-shadow:
        0 3px 0 var(--or-terne),
        0 5px 10px rgba(0, 0, 0, 0.2);
}

.share-link-block button,
.btn-import-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: var(--brun-cuir);
    color: var(--beige-clair);
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow:
        0 3px 0 var(--brun-nuit),
        0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.share-link-block button:hover,
.btn-import-export:hover {
    background: var(--brun-cuir-clair);
    transform: translateY(-1px);
}

.share-link-block button.copied {
    background: var(--or);
    color: var(--brun-nuit);
    box-shadow:
        0 3px 0 var(--or-terne),
        0 5px 10px rgba(0, 0, 0, 0.2);
}

.share-link-label-mobile {
    display: none;
}

/* === ÉTAGÈRE === */
.saison-block {
    margin-bottom: 30px;
}

.saison-block h2 {
    font-size: 1.35em;
    padding-left: 12px;
    border-left: 6px solid var(--or);
}

.shelf {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.serie-group {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.serie-group:last-child {
    border-right: none;
}
.serie-block {
    margin-bottom: 32px;
}

.serie-title {
    font-size: 1.05em;
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid var(--or-terne);
    color: var(--brun-cuir);
}

/* === FIGURINE + PLAQUE + PASTILLE === */
.item-figure {
    width: 100px;
    padding: 10px 6px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: var(--beige-clair);
    border: 5px solid var(--brun-cuir);
    border-bottom-width: 25px;
    box-shadow:
        inset 0 0 0 2px var(--brun-cuir-clair),
        0 4px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.item-figure:hover {
    transform: translateY(-3px);
}
.quick-add-mode .item-figure:hover {
    transform: none;
}

.item-figure.not-owned {
    background: var(--beige);
    border-color: var(--brun-cuir-clair);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.item-image-wrap {
    position: relative;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.item-image-wrap img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
}

.item-figure.not-owned .item-image-wrap img {
    filter: grayscale(0.3) brightness(0.7);
    opacity: 0.4;
}

.item-figure.not-owned .item-plaque {
    opacity: 0.4;
    filter: grayscale(0.3);
}
.item-figure.not-owned:hover .item-plaque {
    opacity: 1;
    filter: none;
}
.item-figure.not-owned:hover .item-image-wrap img {
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
    opacity: 1;
}

.item-image-wrap img,
.item-quantity-badge {
    position: relative;
    z-index: 1;
}
/* === BACKGROUNDS PAR RARETÉ === */

.item-figure.figure-default,
.item-figure.figure-double {
    background: var(--beige-clair);
}

.item-figure.figure-unique {
    background: linear-gradient(160deg, var(--beige-clair) 0%, rgba(201, 154, 60, 0.35) 100%);
}

.item-figure.figure-triple {
    background: linear-gradient(160deg, var(--beige-clair) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.item-figure.figure-banni {
    background: linear-gradient(160deg, var(--beige-clair) 0%, rgba(177, 34, 34, 0.3) 100%);
    border-color: var(--rouge-banni);
}

.item-figure.figure-socle-dore {
    background: var(--beige-clair);
    border-color: var(--or-terne);
}

.item-figure.figure-socle-dore .item-image-wrap,
.item-figure.figure-socle-rouge .item-image-wrap {
    position: relative;
    overflow: hidden;
}

.item-figure.figure-socle-dore .item-image-wrap::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 60%;
    height: 220%;
    background: linear-gradient(75deg, rgba(255, 255, 255, 0) 0%, rgba(242, 217, 138, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(20deg);
    animation: foilSweep 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.item-figure.figure-socle-rouge .item-image-wrap::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 60%;
    height: 220%;
    background: linear-gradient(75deg, rgba(255, 255, 255, 0) 0%, rgba(163, 77, 39, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(20deg);
    animation: foilSweep 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes foilSweep {
    0% {
        left: -80%;
    }
    50% {
        left: 120%;
    }
    100% {
        left: 120%;
    }
}

.item-figure.figure-socle-rouge {
    background: linear-gradient(160deg, var(--beige-clair) 0%, rgba(177, 34, 34, 0.5) 100%);
    border-color: #931815;
}

.item-quantity-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    color: var(--brun-nuit);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    border: 2px solid var(--beige-clair);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.item-plaque {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 88%;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--brun-nuit);
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow:
        0 2px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.item-figure.not-owned .item-plaque {
    opacity: 0.5;
    filter: grayscale(0.6);
}

.plaque-default {
    background: linear-gradient(180deg, var(--beige-clair), var(--beige-fonce));
    border-color: var(--brun-cuir-clair);
}

.plaque-unique {
    background: linear-gradient(180deg, var(--or-clair), var(--or));
    border-color: var(--or-terne);
}

.plaque-double {
    background: white;
    border-color: var(--brun-cuir-clair);
}

.plaque-triple {
    background: black;
    color: var(--beige-clair);
    border-color: var(--brun-cuir);
}

.plaque-banni {
    background: linear-gradient(180deg, #d75858, var(--rouge-banni));
    color: var(--beige-clair);
    border-color: #7a1515;
}

.plaque-socle_rouge {
    background: #8a1616;
    color: var(--beige-clair);
    border-color: #7a2e14;
}

.plaque-socle_dore {
    background: linear-gradient(180deg, var(--or-clair), var(--or-terne));
    border-color: var(--or-terne);
    box-shadow:
        0 0 6px rgba(201, 154, 60, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Mode ajout rapide : la quantité en pastille cède la place aux boutons */
.quick-add-mode .item-quantity-badge {
    display: none;
}

.item-quantity {
    display: none;
}

.quick-add-mode .item-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.item-quantity .qty-btn {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: var(--or);
    color: var(--brun-nuit);
    border-radius: 20%;
    cursor: pointer;
    box-shadow:
        0 2px 0 var(--or-terne),
        0 3px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.item-quantity .qty-btn:hover {
    background: var(--or-clair);
    transform: translateY(-1px);
}

.item-quantity .qty-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--or-terne);
}

.item-quantity .quantite-input {
    width: 34px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 3px;
    border: 2px solid var(--brun-cuir-clair);
    border-radius: 6px;
    background: var(--beige-clair);
    color: var(--brun-nuit);
}

.item-quantity .quantite-input:focus {
    outline: none;
    border-color: var(--or);
}

/* Barre de progression*/

.global-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4a90d9;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

/* ==========================================================
   MODALE ITEM (figurines / invocations / décors / cartes)
   Structure réelle (wrappers conservés) :
   .item-modal-overlay > .item-modal >
     .item-modal-close (bouton fermer)
     .item-modal-image > img#modal-item-image
     h3#modal-item-name.item-plaque
     .item-modal-meta > span#modal-item-serie + span#modal-item-rarete
     .item-modal-quantity.modal-quantity-stepper > label + .item-quantity (figurines)
     .modal-quantity-toggle (bouton binaire, cartes)
     .item-modal-badges#modal-item-badges
   ========================================================== */

.item-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 17, 10, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.item-modal-overlay.active {
    display: flex;
}

.item-modal {
    position: relative;
    background: var(--beige-clair);
    border: 5px solid var(--brun-cuir);
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 340px;
    max-width: 90vw;
    text-align: center;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 2px var(--brun-cuir-clair),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Fonds teintés par rareté, identiques au listing (figurines uniquement) */
.item-modal-overlay.figure-unique .item-modal {
    background: linear-gradient(160deg, var(--beige-clair) 0%, #f0dba8 100%);
}

.item-modal-overlay.figure-triple .item-modal {
    background: linear-gradient(160deg, var(--beige-clair) 0%, #c9a98a 100%);
}

.item-modal-overlay.figure-banni .item-modal {
    background: linear-gradient(160deg, var(--beige-clair) 0%, #e8a8a8 100%);
    border-color: var(--rouge-banni);
}

.item-modal-overlay.figure-socle-rouge .item-modal {
    background: linear-gradient(160deg, var(--beige-clair) 0%, #e8bfb2 100%);
    border-color: #b96b60;
}

.item-modal-overlay.figure-socle-rouge .item-modal::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 60%;
    height: 220%;
    background: linear-gradient(75deg, rgba(255, 255, 255, 0) 0%, rgba(163, 77, 39, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(20deg);
    animation: foilSweep 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.item-modal-overlay.figure-socle-dore .item-modal {
    background: linear-gradient(160deg, var(--beige-clair) 0%, #f0dba8 100%);
    border-color: var(--or-terne);
}
.item-modal-overlay.figure-socle-dore .item-modal::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -80%;
    width: 60%;
    height: 220%;
    background: linear-gradient(75deg, rgba(255, 255, 255, 0) 0%, rgba(242, 217, 138, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(20deg);
    animation: foilSweep 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.item-modal > * {
    position: relative;
    z-index: 1;
}

/* Bouton fermer : les deux classes utilisées selon la modale (item vs badge) */
.modal-close,
.item-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--brun-cuir);
    color: var(--beige-clair);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.modal-close:hover,
.item-modal-close:hover {
    background: var(--brun-cuir-clair);
}

.item-modal-image {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.item-modal-image img {
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

/* Nom en plaque, réutilise les classes .plaque-* du listing */
#modal-item-name {
    display: table;
    padding: 6px 16px;
    border-radius: 4px;
    font-family: 'Grandstander', cursive;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow:
        0 2px 3px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.item-modal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    color: var(--brun-cuir);
}

.item-modal-meta span:empty {
    display: none;
}

.item-modal-meta span:not(:empty)::before {
    content: '•';
    margin-right: 10px;
    color: var(--or-terne);
}

.item-modal-meta span:first-child::before {
    content: '';
    margin-right: 0;
}

.item-modal-meta .article-langue-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

.item-modal-meta .modal-item-ownership.owned {
    color: #2e7d32;
}

.item-modal-meta .modal-item-ownership.not-owned {
    color: #777;
}

.modal-item-ownership strong {
    font-size: 16px;
    margin-left: 3px;
}

.item-modal-quantity label {
    display: block;
    font-size: 13px;
    color: var(--brun-cuir);
    margin-bottom: 10px;
    font-weight: 600;
}

.item-modal-quantity .item-quantity {
    display: flex !important;
    justify-content: center;
    gap: 12px;
}

.item-modal-quantity .qty-btn {
    width: 34px;
    height: 34px;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 17px;
    border: none;
    background: var(--or);
    color: var(--brun-nuit);
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 2px 0 var(--or-terne),
        0 3px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease;
}

.item-modal-quantity .qty-btn:hover {
    background: var(--or-clair);
    transform: translateY(-1px);
}

.item-modal-quantity .qty-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--or-terne);
}

.item-modal-quantity .quantite-input {
    width: 50px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 4px;
    border: 2px solid var(--brun-cuir-clair);
    border-radius: 6px;
    background: var(--beige-clair);
    color: var(--brun-nuit);
}

.item-modal-quantity .quantite-input:focus {
    outline: none;
    border-color: var(--or);
}

/* Toggle binaire cartes : même esthétique or/brun que le reste */
.modal-quantity-toggle {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 14px;
    background: var(--or);
    color: var(--brun-nuit);
    cursor: pointer;
    box-shadow:
        0 3px 0 var(--or-terne),
        0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.modal-quantity-toggle:hover {
    background: var(--or-clair);
    transform: translateY(-1px);
}

.modal-quantity-toggle:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--or-terne);
}

.modal-quantity-toggle.remove {
    background: var(--rouge-banni);
    color: var(--beige-clair);
    box-shadow:
        0 3px 0 #7a1515,
        0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Bascule stepper / toggle selon le type d'item affiché */
#item-modal.type-figurine .modal-quantity-toggle {
    display: none;
}
#item-modal.type-carte .modal-quantity-stepper {
    display: none !important;
}

#item-modal.type-carte.variante-standard .item-modal {
    border-color: #1a1a1a;
    background: #fff;
}

#item-modal.type-carte.variante-foil .item-modal {
    border-color: #d4af37;
    box-shadow:
        inset 0 0 0 2px #f0d78c,
        0 10px 30px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #fff8e1, #fef3c7);
}

#item-modal.type-carte.variante-alt_art .item-modal {
    border-color: #6d28d9;
    background: #f3edff;
}

#item-modal.type-carte.variante-alt_art #modal-item-name {
    background: #6d28d9;
    color: #fff;
}

#item-modal.type-carte.variante-eternal .item-modal {
    border-color: #0f172a;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(15, 23, 42, 0.5);
    background: #1e293b;
}

#item-modal.type-carte.variante-eternal #modal-item-name {
    background: #0f172a;
    color: #e2e8f0;
}

#item-modal.type-carte.variante-eternal .item-modal-meta {
    color: #94a3b8;
}

#item-modal.type-carte.variante-promo .item-modal {
    border-color: #b91c1c;
    background: #fef2f2;
}

#item-modal.type-carte.variante-promo #modal-item-name {
    background: #b91c1c;
    color: #fff;
}

.item-modal-badges {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 2px dashed var(--brun-cuir-clair);
    text-align: left;
    font-size: 12.5px;
    color: var(--brun-cuir);
}

.item-modal-badges strong {
    color: var(--brun-nuit);
    font-family: 'Grandstander', cursive;
}

.item-modal-badges ul {
    margin: 8px 0 0;
    padding-left: 4px;
    list-style: none;
}

.item-modal-badges li {
    margin-bottom: 5px;
    position: relative;
}

.item-modal-badges li.status-complete,
.badge-modal-missing li.status-complete {
    color: #2e7d32;
    font-weight: 700;
}

.item-modal-badges li.status-partial,
.badge-modal-missing li.status-partial {
    color: #b8860b;
    font-weight: 700;
}

.item-modal-badges li.status-none,
.badge-modal-missing li.status-none {
    color: var(--brun-cuir);
}

/* BADGES */

.badges-section {
    margin-bottom: 40px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.badges-grid::-webkit-scrollbar {
    height: 6px;
}

.badges-grid::-webkit-scrollbar-thumb {
    background: var(--brun-cuir-clair);
    border-radius: 4px;
}

.badge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 10px;
    background: var(--beige-clair);
    border: 2px solid var(--beige-fonce);
    transition:
        transform 0.15s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.badge-filter-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--brun-cuir);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.15s ease,
        background 0.15s ease;
    z-index: 3;
}

.badge-card:hover .badge-filter-icon {
    opacity: 1;
}

.badge-filter-icon:hover {
    background: var(--or);
    color: var(--brun-nuit);
}
.badge-card.filter-active {
    border-color: var(--or);
    background: linear-gradient(160deg, var(--beige-clair) 0%, rgba(201, 154, 60, 0.25) 100%);
    box-shadow:
        0 0 0 2px var(--or),
        0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.badge-card.filter-active .badge-filter-icon {
    opacity: 1;
    background: var(--or);
    color: var(--brun-nuit);
}
.badge-name {
    font-family: 'Grandstander', cursive;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brun-nuit);
    margin-bottom: 8px;
}

.badge-percent {
    font-size: 11px;
    color: var(--brun-cuir);
    margin-bottom: 6px;
}

.badge-mini-progress {
    height: 6px;
    background: var(--beige-fonce);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.badge-card:hover {
    transform: translateY(-3px);
    border-color: var(--or);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-card.locked {
    background: var(--beige);
    border-color: var(--beige-fonce);
}

.badge-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: linear-gradient(145deg, var(--or-clair), var(--or));
    box-shadow:
        inset 0 0 0 3px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-card.locked .badge-icon {
    filter: grayscale(1) brightness(0.85);
    opacity: 0.5;
}

.badge-mini-progress-fill {
    height: 100%;
    background: var(--or);
    transition: width 0.3s ease;
}

.badge-card.locked .badge-mini-progress-fill {
    background: var(--brun-cuir-clair);
}

/* Modale badge */
.badge-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 17, 10, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.badge-modal-overlay.active {
    display: flex;
}

.badge-modal {
    background: var(--beige-clair);
    border: 5px solid var(--brun-cuir);
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 340px;
    max-width: 90vw;
    position: relative;
    text-align: center;
    box-shadow:
        inset 0 0 0 2px var(--brun-cuir-clair),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

.badge-modal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    background: linear-gradient(145deg, var(--or-clair), var(--or));
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.2);
}

.badge-modal h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.badge-modal p {
    font-size: 13px;
    color: var(--brun-cuir);
    margin-bottom: 16px;
}

.badge-modal-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.badge-modal-missing {
    text-align: left;
    font-size: 13px;
    color: var(--brun-cuir);
    max-height: 200px;
    overflow-y: auto;
}

.badge-modal-missing ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

:root {
    --color-success: #4ade80;
    --color-danger: #f87171;
}

@keyframes pulseUp {
    0% {
        outline: 2px solid color-mix(in srgb, var(--color-success) 80%, transparent);
        outline-offset: 0px;
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        outline: 2px solid color-mix(in srgb, var(--color-success) 0%, transparent);
        outline-offset: 6px;
        transform: scale(1);
    }
}

@keyframes pulseDown {
    0% {
        outline: 2px solid color-mix(in srgb, var(--color-danger) 80%, transparent);
        outline-offset: 0px;
        transform: scale(1);
    }
    50% {
        transform: scale(0.97);
    }
    100% {
        outline: 2px solid color-mix(in srgb, var(--color-danger) 0%, transparent);
        outline-offset: 6px;
        transform: scale(1);
    }
}

.item-figure.pulse-up,
.item-modal.pulse-up {
    animation: pulseUp 0.4s ease-out;
}
.item-figure.pulse-down,
.item-modal.pulse-down {
    animation: pulseDown 0.4s ease-out;
}

/* Onglets langue */
.langue-selector-cartes {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    width: fit-content;
    padding: 4px 6px;
    border-left: 4px solid #2c5f8a;
    background: rgba(44, 95, 138, 0.1);
    border-radius: 0 6px 6px 0;
}

.langue-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #555;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.langue-tab:hover {
    border-bottom-color: #2c5f8a;
    background: rgba(44, 95, 138, 0.1);
}

.langue-tab.active {
    background: #2c5f8a;
    border-bottom-color: #2c5f8a;
    color: #fff;
}

.langue-tab img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Toggle tri saison / variante */
.carte-sort-toggle {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 16px;
}

.sort-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sort-btn.active {
    background: #fff;
    color: #2c5f8a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   CARTES — format carte à jouer, portrait
   ========================================================== */
.carte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.item-carte {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 4px solid #1a1a1a;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease,
        filter 0.15s ease;
}

.item-carte:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.item-carte.not-owned {
    opacity: 0.4;
    filter: grayscale(0.3) brightness(0.7);
}

.item-carte.not-owned:hover {
    opacity: 1;
    filter: none;
}

/* Hauteur fixe : garantit que le texte en dessous ne soit jamais écrasé */
.item-carte .item-image-wrap {
    position: relative;
    height: 150px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f0f0;
    padding: 6px;
}

.item-carte .item-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.item-carte .item-plaque {
    position: relative;
    bottom: auto;
    text-align: center;
    font-family: 'Grandstander', cursive;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brun-nuit);
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-serie-numero {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 5px 2px 5px;
    font-size: 0.62rem;
    font-weight: 600;
    color: #777;
    background: #fff;
}

.item-serie-numero span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

/* Drapeau langue, bas-gauche de l'image */
.item-carte .item-image-wrap img.carte-flag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 20px;
    height: auto;
    z-index: 2;
}

/* === Bandeau variante, largeur fixe identique pour un centrage cohérent === */
.item-carte[class*='variante-']:not(.variante-standard)::before {
    position: absolute;
    top: 12px;
    left: -34px;
    width: 110px;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 3px 0;
    transform: rotate(-40deg);
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.item-carte.variante-standard {
    border-color: #1a1a1a;
}

.item-carte.variante-foil {
    border-color: #d4af37;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
}

.item-carte.variante-foil .item-image-wrap {
    position: relative;
    background: linear-gradient(135deg, #fff8e1, #fef3c7);
}

.item-carte.variante-foil .item-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
    background-size: 250% 250%;
    animation: foil-shimmer 3s ease infinite;
    pointer-events: none;
}

.item-carte.variante-foil .item-plaque,
.item-carte.variante-foil .item-serie-numero {
    background: linear-gradient(180deg, #fffbea, #fff);
}

.item-carte.variante-foil::before {
    content: 'FOIL';
    background: #d4af37;
}

@keyframes foil-shimmer {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.item-carte.variante-alt_art {
    border-color: #6d28d9;
    border-width: 5px;
}

.item-carte.variante-alt_art .item-plaque {
    background: #6d28d9;
    color: #fff;
}

.item-carte.variante-alt_art .item-serie-numero {
    background: #f3edff;
    color: #6d28d9;
}

.item-carte.variante-alt_art::before {
    content: 'ALT ART';
    background: #6d28d9;
}

.item-carte.variante-eternal {
    border-color: #0f172a;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(15, 23, 42, 0.5);
    background-color: #1e293b;
}

.item-carte.variante-eternal .item-image-wrap {
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.item-carte.variante-eternal .item-plaque {
    background: #0f172a;
    color: #e2e8f0;
}

.item-carte.variante-eternal .item-serie-numero {
    background: #1e293b;
    color: #94a3b8;
}

.item-carte.variante-eternal::before {
    content: 'ETERNAL';
    background: #0f172a;
}

.item-carte.variante-promo {
    border-color: #b91c1c;
}

.item-carte.variante-promo .item-plaque {
    background: #b91c1c;
    color: #fff;
}

.item-carte.variante-promo .item-serie-numero {
    background: #fef2f2;
    color: #b91c1c;
}

.item-carte.variante-promo::before {
    content: 'PROMO';
    background: #b91c1c;
}

.carte-state-icon {
    position: absolute;
    bottom: 52px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 3;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.carte-state-icon.owned {
    background: #22c55e;
    color: #fff;
}

.carte-state-icon.not-owned {
    background: #6b7280;
    color: #fff;
}

.carte-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
}

.quick-add-mode .carte-remove-btn {
    display: flex;
}

.carte-remove-btn:hover {
    background: #b91c1c;
}

/* Bandeau filtre badge */
.badge-filter-banner {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 8px;
    margin: 10px;
    font-size: 0.9rem;
}

.badge-filter-clear {
    border: none;
    background: transparent;
    color: #1e40af;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.badge-filter-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 4px;
    border: 1px solid #2c5f8a;
    background: #fff;
    color: #2c5f8a;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.badge-filter-btn:hover {
    background: #2c5f8a;
    color: #fff;
}

.show-missing-list-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}

.show-missing-list-btn:hover {
    color: #444;
}

.article-langue-flag {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-left: 4px;
    border-radius: 2px;
}
.boutons-sticky-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-20px);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 50;
}

.boutons-sticky-toolbar .btn-toggle {
    width: 230px;
    justify-content: flex-start;
    white-space: nowrap;
}

#toggle-quick-add .qa-state {
    color: #dc2626;
}

#toggle-quick-add.active .qa-state {
    color: #16a34a;
}

#toggle-missing-only .mo-state {
    color: #16a34a;
}

#toggle-missing-only.active .mo-state {
    color: #ff8e0d;
}

.empty-state {
    text-align: center;
    padding: 20px;
}

.empty-state-success .empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.empty-state-success p {
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    color: var(--brun-nuit);
    margin-bottom: 14px;
}

.empty-state-reset {
    padding: 8px 18px;
    border: 2px solid var(--brun-cuir);
    border-radius: 999px;
    background: var(--beige-clair);
    color: var(--brun-cuir);
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-state-reset:hover {
    border-color: var(--or);
    color: var(--or-terne);
}

@media (max-width: 600px) {
    .collection-tabs {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 4px;
        margin: 0 -4px 18px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .collection-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 9px 14px;
        font-size: 13px;
    }

    .langue-selector-cartes {
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .langue-selector-cartes::-webkit-scrollbar {
        display: none;
    }

    .langue-tab {
        flex: 0 0 auto;
        width: 38px;
        height: 34px;
        justify-content: center;
        padding: 6px;
    }

    .langue-label {
        display: none;
    }

    .boutons-sticky-toolbar {
        right: 0;
        width: auto;
        gap: 6px;
        top: 0;
    }

    .collection-toolbar {
        height: 0;
        top: 48px;
    }

    h1 .h1-actions {
        position: static;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 8px;
        font-size: 0.5em;
    }

    .collection-help {
        font-size: 0.75em;
    }

    .boutons-sticky-toolbar .btn-toggle {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        justify-content: center;
        gap: 5px;
        padding: 8px 10px;
        font-size: 12px;
        box-shadow: 0 2px 0 var(--brun-cuir);
    }

    .boutons-sticky-toolbar .btn-toggle.active {
        box-shadow: 0 2px 0 var(--or-terne);
    }

    .boutons-sticky-toolbar .btn-icon {
        font-size: 14px;
    }

    .boutons-sticky-toolbar .toggle-label {
        display: none;
    }

    .share-link-label {
        display: none;
    }

    .share-link-label-mobile {
        display: inline;
    }

    .saison-block {
        margin-bottom: 20px;
    }

    .saison-block h2 {
        margin: 0 0 10px;
        padding: 8px 10px;
        border-left-width: 4px;
        background: rgba(201, 154, 60, 0.12);
        border-radius: 0 6px 6px 0;
        font-size: 1.1em;
    }

    .serie-block {
        margin-bottom: 22px;
    }

    .serie-title {
        margin-bottom: 8px;
        padding: 6px 8px;
        border-left-width: 3px;
        background: rgba(91, 62, 45, 0.08);
        border-radius: 0 5px 5px 0;
        font-size: 0.95em;
    }
}

/* ==========================================================
   MODALE IMPORT / EXPORT
   ========================================================== */

.import-export-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 17, 10, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.import-export-modal-overlay.active {
    display: flex;
}

.import-export-modal {
    position: relative;
    background: var(--beige-clair);
    border: 5px solid var(--brun-cuir);
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow:
        inset 0 0 0 2px var(--brun-cuir-clair),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

.import-export-modal h3 {
    margin: 0 0 18px;
    font-family: 'Grandstander', cursive;
    font-size: 18px;
    color: var(--brun-nuit);
    text-align: center;
}

/* Onglets Exporter / Importer, même logique que .collection-tabs */
.import-export-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--or);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.ie-tab-btn {
    flex: 1;
    background: var(--beige);
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 10px 12px;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 14px;
    color: var(--brun-cuir);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ie-tab-btn:hover {
    color: var(--or-terne);
}

.ie-tab-btn.active {
    background: rgba(201, 154, 60, 0.14);
    border-bottom-color: var(--or-clair);
    color: var(--brun-nuit);
}

.ie-panel {
    display: none;
}

.ie-panel.active {
    display: block;
}

.ie-panel > p {
    font-size: 13px;
    font-weight: 600;
    color: var(--brun-cuir);
    margin: 0 0 10px;
}

/* Cases à cocher catégories */
.ie-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--beige);
    border: 1px solid var(--beige-fonce);
    border-radius: 8px;
}

.ie-category-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brun-nuit);
    cursor: pointer;
}

.ie-category-option input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--or-terne);
    cursor: pointer;
}

/* Choix du mode d'import */
.ie-import-mode {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.ie-import-mode label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brun-nuit);
    cursor: pointer;
}

.ie-import-mode input[type='radio'] {
    accent-color: var(--or-terne);
    cursor: pointer;
}

/* Bandeau d'avertissement */
.ie-import-warning {
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 4px solid var(--or-terne);
    background: rgba(201, 154, 60, 0.12);
    border-radius: 0 6px 6px 0;
    font-size: 12.5px;
    color: var(--brun-cuir);
    line-height: 1.4;
}

/* Résumé de comparaison avant import */
.ie-import-summary {
    margin: 14px 0;
    padding: 12px 14px;
    background: var(--beige);
    border: 1px solid var(--beige-fonce);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--brun-nuit);
}

.ie-import-summary p {
    margin: 0 0 8px;
    font-weight: 700;
}

.ie-import-summary ul {
    margin: 0;
    padding-left: 18px;
}

.ie-import-summary li {
    margin-bottom: 4px;
}

.ie-summary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ie-import-detail-toggle {
    padding: 2px 7px;
    border: 1px solid var(--beige-fonce);
    border-radius: 4px;
    background: transparent;
    color: var(--brun-cuir);
    font: inherit;
    font-size: 11.5px;
    cursor: pointer;
}

.ie-import-detail-toggle:hover {
    background: var(--beige-fonce);
}

.ie-import-detail {
    margin: 6px 0 8px;
    padding: 8px 10px;
    border-left: 3px solid var(--or-terne);
    background: rgba(255, 255, 255, 0.45);
}

.ie-import-detail-section {
    margin-bottom: 7px;
}

.ie-import-detail-section:last-child {
    margin-bottom: 0;
}

.ie-import-detail-section ul {
    margin-top: 3px;
}

#ie-import-filename {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: var(--brun-cuir);
    font-style: italic;
}

.ie-import-format-info {
    margin: 14px 0;
    padding: 10px 12px;
    border-left: 4px solid var(--or-terne);
    background: rgba(201, 154, 60, 0.12);
    border-radius: 0 6px 6px 0;
    font-size: 12.5px;
    color: var(--brun-cuir);
    line-height: 1.4;
}

/* Boutons génériques export/import */
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--or);
    color: var(--brun-nuit);
    box-shadow:
        0 3px 0 var(--or-terne),
        0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--or-clair);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--beige);
    color: var(--brun-cuir);
    border: 2px solid var(--brun-cuir-clair);
}

.btn-secondary:hover {
    border-color: var(--or);
    color: var(--or-terne);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger {
    background: var(--rouge-banni);
    color: var(--beige-clair);
    box-shadow:
        0 3px 0 #7a1515,
        0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-danger:hover {
    background: #d75858;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .import-export-modal {
        width: 100%;
        padding: 22px 16px 18px;
    }

    .ie-tab-btn {
        font-size: 12.5px;
        padding: 8px;
    }
}
.ie-import-summary.error {
    border-color: var(--rouge-banni);
    background: rgba(177, 34, 34, 0.08);
    color: #7a1515;
}

.ie-import-summary.error p {
    margin: 0;
    font-weight: 700;
    color: #7a1515;
}
