/* Style des checkboxes */
.checkbox-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-wrapper label:before {
    content: '';
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + label:before {
    background-color: #2196F3;
    border-color: #2196F3;
}

.checkbox-wrapper input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper label img {
    margin-right: 8px;
}

.checkbox-wrapper:hover label:before {
    border-color: #2196F3;
}

/* Style de la carte */
#mapidSuccess {
    height: 500px;
    width: 100%;
    margin-bottom: 20px;
}

/* Style de la grille */
.story-item {
    margin-bottom: 20px;
}

.story-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding:15px;
}

.story-image {
    height: 70px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(100%);
}

.story-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
}

.story-image:hover .story-link {
    opacity: 1;
}

.story-title {
    padding: 10px;
    text-align: center;
}

/* Style de la liste d'entreprises */
.enterprise-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.enterprise-list li {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.enterprise-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.enterprise-list li:hover {
    background-color: #f0f0f0;
}

/* Style container principal */
.success-stories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style des filtres */
.filter-container {
    margin-bottom: 20px;
}

.category-filters {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 colonnes de taille égale */
    gap: 20px;
    padding: 20px;
}
.story-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.story-box-link:hover .story-link {
    opacity: 1;
}

.story-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-box-link:hover .story-box {
    transform: translateY(-5px);
}

/* Modifier le .story-link existant */
.story-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
}
@media screen and (max-width:1024px) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes de taille égale */
        gap: 20px;
        padding: 20px;
    }
}
@media screen and (max-width:768px) {
    .grid-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 2 colonnes de taille égale */
        gap: 20px;
        padding: 20px;
    }
}