:root {
    --bg-card: #1a1a1a;
    --bg-card-hover: #343434;
    --bg-badge: #2f3747;
    --color-link:#2D87BFFF;
}


.survey-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: var(--bg-card);
    width: 350px;
    padding: 2rem;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    height: max-content;
}

.survey-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-3px);
}

.survey-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    grid-gap: 40px;
    grid-auto-rows: auto;
}

.badge {
    border: solid var(--bg-badge) 2px;
    border-radius: 8px;
    background-color: var(--bg-badge);
    padding: 4px 12px;
    margin-bottom: 20px;
    text-transform: capitalize;
    font-weight: bold;
}

.survey-name {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.description {
    color: #c7c7c7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.info-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: solid 1px grey;
}

.info-item .span-title{
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-date {
    color: rgba(189, 189, 189, 0.9);
    margin-top: 1.5rem;
    font-size: 0.75rem;
    text-align: right;
    font-style: italic;
}

.link-to-survey{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    color: var(--color-link);
    font-weight: bold;
    padding: 10px 0;
    border-radius: 2px;
    width: 100%;

    background-image: linear-gradient(var(--color-link), var(--color-link));
    background-size: 0 100%; /* Largeur 0% au début */
    background-repeat: no-repeat;
    background-position: left; /* Le remplissage part de la gauche vers la droite */
    transition: background-size 0.3s ease-in-out, color 0.3s; /* Animation fluide du remplissage */
}

.link-to-survey:hover {
    background-size: 100% 100%;
    width: 100%;
}

.link-to-survey:hover span,
.link-to-survey:hover #arrow-right {
    color: white;
}

.link-to-survey span {
    display: inline-block;
    transition: transform 0.3s ease-out, color 0.3s ease-in-out;
}

.link-to-survey:hover span {
    transform: translateX(10px);
}

#arrow-right {
    opacity: 0;
    margin-left: 5px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}

.link-to-survey:hover #arrow-right {
    opacity: 1;
    transform: translateX(30px);
}

@keyframes arrow-apparing {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}