/* ===== Galerie réalisations — styles front ===== */

/* Carte réalisation (listing) */
.webprealisations-card {
    display: block;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    color: inherit;
}
.webprealisations-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.webprealisations-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
.webprealisations-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.webprealisations-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}
.webprealisations-card__placeholder i {
    font-size: 48px;
}
.webprealisations-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f39c12;
    color: #fff;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.webprealisations-card__body {
    padding: 12px;
}
.webprealisations-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #333;
}
.webprealisations-card__city {
    font-size: 0.8rem;
    color: #777;
    margin: 0 0 4px;
}
.webprealisations-card__category {
    display: inline-block;
    font-size: 0.75rem;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 0;
    color: #555;
}

/* Tabs filtres catégories */
.webprealisations-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.webprealisations-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 0;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.webprealisations-tab:hover {
    background: #ddd;
    color: #333;
    text-decoration: none;
}
.webprealisations-tab.active {
    background: #333;
    color: #fff;
}

/* Galerie détail */
.webprealisations-gallery__main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: pointer;
}
.webprealisations-gallery__thumbs {
    overflow-x: auto;
}
.webprealisations-gallery__thumb {
    width: 80px;
    height: 60px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.webprealisations-gallery__thumb.active,
.webprealisations-gallery__thumb:hover {
    border-color: #333;
}
.webprealisations-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Produits utilisés */
.webprealisations-products .card {
    transition: box-shadow 0.2s;
}
.webprealisations-products .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.webprealisations-products .card-img-top {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 8px;
    background: #f8f9fa;
}

/* Formulaire soumission */
.webprealisations-submit {
    max-width: 700px;
}

/* Responsive */
@media (max-width: 575.98px) {
    .webprealisations-gallery__thumb {
        width: 60px;
        height: 45px;
    }
    .webprealisations-gallery__main img {
        max-height: 300px;
    }
}
