/**
 * Cards - Cartes de réalisations
 * BWA Realisations Elementor Widget
 */

/* Carte de réalisation */
.bwa-realisation-card {
    position: relative;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.bwa-realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image wrapper avec overlay */
.bwa-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bwa-card-image-wrapper .bwa-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bwa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bwa-realisation-card:hover .bwa-card-image {
    transform: scale(1.05);
}

.bwa-card-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

/* Overlay avec effet hover - positionné en bas */
.bwa-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* SVG de forme de vague en arrière-plan */
.bwa-card-overlay .bwa-wave-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #009e8d;
    z-index: 0;
    pointer-events: none;
}

.bwa-realisation-card:hover .bwa-card-overlay {
    opacity: 1;
}

/* Contenu de l'overlay */
.bwa-card-overlay-content {
    flex: 1;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.bwa-card-overlay .bwa-card-overlay-content .bwa-card-overlay-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    font-family: 'Myriad Pro', sans-serif;
    color: #ffffff;
    line-height: normal;
    letter-spacing: 0.19px;
}

/* Bouton magnifying glass - style announcement__link */
.bwa-card-overlay .bwa-card-view-btn.announcement__link,
.bwa-card-overlay .bwa-card-view-btn {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.bwa-card-overlay .bwa-card-view-btn:hover {
    transform: scale(1.1);
}

.bwa-card-overlay .bwa-card-view-btn svg {
    color: #009e8d;
    width: 24px;
    height: 24px;
}

/* Contenu de la carte (ancien style, peut être supprimé si non utilisé) */
.bwa-card-content {
    padding: 20px;
    display: none;
}

.bwa-card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}
