/* =========================
   ARMES V2 - WRAPPER
========================= */

.armesv2-section{
    width: min(1500px, 96%);
    margin: 35px auto 10px auto;
}

/* =========================
   GRANDES CARTES / PANNEAUX
========================= */

.armesv2-panel{
    border: none;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

/* =========================
   TABLEAUX
========================= */

.armesv2-table-wrap{
    overflow-x: auto;
    border-radius: 16px;
    padding: 8px;
}

.armesv2-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    color: #f3eadc;
    min-width: 980px;
}

.armesv2-table thead th{
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 10px;
    font-size: .98rem;
    letter-spacing: .4px;
    color: #ffe7bf;
    background: linear-gradient(180deg, #6f4321, #4b2d16);
    border-bottom: 2px solid #b67a3d;
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
}

.armesv2-table thead th:first-child{
    border-top-left-radius: 14px;
}

.armesv2-table thead th:last-child{
    border-top-right-radius: 14px;
}

.armesv2-table tbody tr:nth-child(odd){
    background: rgba(255,255,255,.03);
}

.armesv2-table tbody tr:nth-child(even){
    background: rgba(255,255,255,.015);
}

.armesv2-table tbody tr:hover{
    background: rgba(255,220,160,.06);
    transition: background .2s ease;
}

.armesv2-table td{
    border-bottom: 1px solid rgba(255,230,190,.10);
    padding: 10px 8px;
    vertical-align: middle;
}

/* =========================
   COLONNE TYPE
========================= */

.armesv2-typecell{
    min-width: 170px;
    width: 170px;
    vertical-align: middle !important;
}

.armesv2-typecell-inner{
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   CELLULES OBJETS
========================= */

.armesv2-itemcell{
    min-width: 180px;
}

.armesv2-itembox{
    
    background: linear-gradient(180deg, rgba(70, 40, 20, 0.3), rgba(70, 40, 20, 0.8));
    border: 1px solid rgba(255,220,170,.15);
    border-radius: 16px;
    padding: 10px 8px 12px 8px;
    box-shadow:
        0 6px 14px rgba(0,0,0,.15);
    cursor: pointer;
    transition: .18s ease;
}

.armesv2-itembox:hover{
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 10px 18px rgba(0,0,0,.22);
}

/* =========================
   CADRE IMAGE
========================= */

.armesv2-imageframe{
    width: 118px;
    height: 118px;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(70, 40, 20, 0.3), rgba(70, 40, 20, 0.8));
    border: 1px solid rgba(255,220,170,.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 4px 10px rgba(0,0,0,.18);
}

.armesv2-imageframe img{
    max-width: 112px;
    max-height: 112px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.30));
}

/* =========================
   BADGES STATS
========================= */

.armesv2-stats{
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    font-size: .82rem;
    line-height: 1.15;
}

.armesv2-stat{
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
    white-space: nowrap;
    padding: 5px 7px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(70, 40, 20, 0.3), rgba(70, 40, 20, 0.8));
    border: 1px solid rgba(255,220,170,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.armesv2-stat-icon{
    font-size: .95rem;
    width: 18px;
    text-align: center;
}

.armesv2-stat-value{
    color: #fff3de;
    font-weight: 600;
}

.armesv2-pos{
    color: #6ee786 !important;
}

.armesv2-neg{
    color: #ff7a7a !important;
}

/* =========================
   ACCESSOIRES
========================= */

.armesv2-accessoires{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.armesv2-accessoire{
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        rgba(45, 26, 13, .88);
    border: 1px solid rgba(255,220,170,.16);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
        0 10px 18px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.armesv2-accessoire:hover{
    transform: translateY(-3px);
    box-shadow:
        0 16px 24px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.armesv2-effets{
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.armesv2-effet{
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,220,170,.10);
    color: #f5ead8;
}

.armesv2-effet strong{
    color: #ffd89c;
}

/* =========================
   SWAL
========================= */

.armesv2-swal-popup{
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #ddd !important;
    border-radius: 14px !important;
}

.armesv2-swal-title{
    color: #222 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.armesv2-modal{
    text-align: center;
}

.armesv2-modal-imageframe{
    width: 220px;
    height: 220px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.10), transparent 45%),
        linear-gradient(180deg, rgba(255,235,205,.08), rgba(255,255,255,.02)),
        rgba(45, 26, 13, .92);
    border: 1px solid rgba(120,80,45,.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 6px 18px rgba(0,0,0,.18);
}

.armesv2-modal-imageframe img{
    max-width: 205px;
    max-height: 205px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.28));
}

.armesv2-modal-stats{
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    text-align: left;
}

.armesv2-modal-stat{
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(70, 40, 20, .92);
    border: 1px solid rgba(120,80,45,.18);
    display: flex;
    align-items: center;
    gap: 8px;
}

.armesv2-modal-stat-icon{
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.armesv2-modal-stat-label{
    color: #f0d3a0;
    font-weight: 700;
}

.armesv2-modal-stat-value{
    font-weight: 700;
    color: #f5ead8;
}

@media (max-width: 1100px){
    .armesv2-imageframe{
        width: 105px;
        height: 105px;
    }

    .armesv2-imageframe img{
        max-width: 98px;
        max-height: 98px;
    }
}

@media (max-width: 700px){
    .armesv2-panel{
        padding: 14px;
        border-radius: 14px;
    }

    .armesv2-stats,
    .armesv2-modal-stats{
        grid-template-columns: 1fr;
    }
}


.armesv2-objet-titre-ligne td,
.armesv2-objet-titre-ligne{
    border-bottom: none !important;
    padding-top: 16px !important;
    padding-bottom: 6px !important;
}

.armesv2-objet-titre-ligne h3{
    margin: 0;
}

.armesv2-table tbody tr + tr .armesv2-itemcell{
    padding-top: 6px;
}