.avp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.avp-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.avp-card-photo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.avp-card-title {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.avp-card-desc {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 16px;
}

.avp-vote-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 12px;
}

.avp-vote-form legend {
    font-weight: 600;
    margin-bottom: 6px;
    padding: 0;
}

.avp-radio {
    display: block;
    margin-bottom: 4px;
    font-weight: normal;
}

.avp-quantite-wrap {
    margin-bottom: 12px;
}

.avp-quantite-wrap input[type="number"] {
    width: 100%;
    max-width: 120px;
    margin-top: 4px;
}

.avp-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.avp-submit:hover {
    background: #135e96;
}

.avp-status {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
}

.avp-status.success {
    color: #2a7a2a;
}

.avp-status.error {
    color: #c0392b;
}

/* Photo principale + vignettes de la galerie */

.avp-card-photo img {
    cursor: zoom-in;
}

.avp-thumbs {
    display: flex;
    gap: 6px;
    margin: -6px 0 12px;
    flex-wrap: wrap;
}

.avp-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
}

.avp-thumb:hover {
    opacity: 1;
}

.avp-thumb.is-active {
    opacity: 1;
    border-color: #2271b1;
}

/* Lightbox */

.avp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.avp-lightbox[hidden] {
    display: none;
}

.avp-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.avp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2em;
    line-height: 1;
    cursor: pointer;
}
