/* Styles addons.php — externalisé pour mise en cache navigateur */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.addon-card {
    background: rgba(10, 14, 22, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.addon-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(197, 160, 89, 0.1);
}

.addon-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, #C5A059, transparent);
    opacity: 0.6;
    z-index: 2;
}

.addon-image-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.addon-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.addon-card:hover .addon-image-wrap img {
    transform: scale(1.08);
}

.addon-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(10, 14, 22, 0.8));
    pointer-events: none;
}

.addon-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.addon-name {
    color: #C5A059;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.addon-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.addon-footer {
    padding: 0 20px 20px;
}

.download-btn {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(163, 130, 65, 0.7));
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: block;
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.4), rgba(163, 130, 65, 0.9));
    transform: scale(1.02);
    color: #fff;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section p {
    color: rgba(255,255,255,0.6);
    max-width: 700px;
    margin: 0 auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(197, 160, 89, 0.3);
}
.lang-flag {
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(50%);
}
.lang-flag:hover, .lang-flag.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    border: 2px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 0 60px rgba(197, 160, 89, 0.2);
}
