/**
 * FICHIER: style.css
 * Placez ce fichier dans: wp-content/plugins/stats-block/
 */

.stats-block-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.stats-block-column {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    overflow: hidden;
}

.stats-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.stats-block-column:hover .stats-block-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.stats-block-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.stats-block-icon {
    font-size: 40px;
    margin-bottom: 23px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-block-icon-svg {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
    /* Cette combinaison de filtres rend le SVG blanc */
}

.stats-block-number {
    font-size: 19px;
    font-weight: 300;
    line-height: 2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
   
    font-family: 'Amalfi Coast', serif;
}

.stats-block-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 250px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-block-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-block-container {
        grid-template-columns: 1fr;
    }
    
    .stats-block-column {
        height: 350px;
    }
    
    .stats-block-number {
        font-size: 19px;
    }
    
    .stats-block-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stats-block-column {
        height: 300px;
    }
    
    .stats-block-icon {
        font-size: 40px;
    }
    
    .stats-block-icon-svg {
        width: 50px;
        height: 50px;
    }
    
    .stats-block-number {
        font-size: 19px;
    }
    
    .stats-block-text {
        font-size: 14px;
        max-width: 200px;
    }
}