/**
 * Cards - Cartes de réalisations
 * BWA Realisations Elementor Widget
 * Design basé sur Figma KELVEO_HOME-PAGE
 */

/* Carte de réalisation */
.bwa-realisation-card {
    position: relative;
    background: #161b2c;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0);
}

.bwa-realisation-card:hover {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.10);
}

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

.bwa-card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 27, 44, 0.7);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.bwa-realisation-card:hover .bwa-card-image-wrapper::after {
    opacity: 0;
}

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

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

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

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

/* Badge de date sur l'image */
.bwa-card-date-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(11, 14, 23, 0.8);
    padding: 4px 12px;
    border-radius: 9999px;
    z-index: 2;
}

.bwa-card-date-badge span,
.bwa-card-date-badge time {
    font-family: 'Nimbus Sans L', sans-serif;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
    color: #ffffff;
    margin: 0;
}

/* Contenu de la carte */
.bwa-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    width: 100%;
}

/* Titre */
.bwa-card-title {
    margin: 0;
    font-family: 'Nimbus Sans L', sans-serif;
    font-weight: bold;
    font-size: 20px;
    line-height: 28px;
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.bwa-realisation-card:hover .bwa-card-title {
    color: #3cb9be !important;
}

/* Description */
.bwa-card-description {
    margin: 0;
    font-family: 'Nimbus Sans L', sans-serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 20px;
    color: #9ca3af;
}

/* Lien "Voir en détails" */
.bwa-card-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #3cb9be;
    text-decoration: none;
    padding-top: 3.5px;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.bwa-card-link:hover {
    opacity: 0.8;
    color: #3cb9be;
}

/* Supprimer l'ancien overlay (non utilisé dans le nouveau design) */
.bwa-card-overlay {
    display: none;
}

.bwa-card-overlay-content {
    display: none;
}

.bwa-card-overlay-title {
    display: none;
}

/* Masquer l'ancien bouton overlay SVG, mais pas le nouveau lien texte */
.bwa-card-image-wrapper .bwa-card-view-btn {
    display: none;
}

.bwa-wave-shape {
    display: none;
}
