/*
Theme Name: Core Framework
Author: Mat
Version: 1.0
Text Domain: core-framework
*/


.grid-service-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.grid-service-item.hover:hover {
    transform: translateY(-8px) scale(1.02);
}

.grid-service-item.border {
    border: 2px solid #333;
}

.grid-service-item.shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.grid-service-item.shadow.hover:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.grid-service-item.highlight:hover {
    background-color: rgba(255, 230, 0, 0.1);
}

.grid-service-item img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.grid-service-item.hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.grid-service-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.grid-service-item.hover::before {
    background: rgba(0,0,0,0.05);
}

.grid-service-item-title,
.grid-service-item-text,
.grid-service-item-link {
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.grid-service-item.hover:hover .grid-service-item-title,
.grid-service-item.hover:hover .grid-service-item-text,
.grid-service-item.hover:hover .grid-service-item-link {
    transform: translateY(-3px);
    opacity: 0.95;
}

.grid-service-item-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease, transform 0.3s ease;
}
.grid-service-item-link:hover {
    color: #005177;
    transform: translateY(-2px);
}

.grid-service-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Optionnel : overlay hover */
.grid-service-item.hover:hover::before {
    content:"";
    position:absolute;
    inset:0;
    background: rgba(0,0,0,0.05);
    border-radius:8px;
    pointer-events:none;
}


@media (max-width: 1023px) {
    .grid-service-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 767px) {
    .grid-service-wrapper {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}