
@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
}

@keyframes iconPulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(0, 136, 204, 0.15); }
    50% { transform: scale(1.07); box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4); }
}

@keyframes vouchIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15); }
    50% { transform: scale(1.07); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45); }
}

@keyframes cardScan {
    0% { left: -80%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 160%; opacity: 0; }
}

.retrouvez-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.retrouvez-card:last-child {
    grid-column: 2;
}

.retrouvez-card {
    background: rgba(15, 15, 25, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: cardFloat 5s ease-in-out infinite;
}
.retrouvez-card:nth-child(1) { animation-delay: 0s; }
.retrouvez-card:nth-child(2) { animation-delay: 1.3s; }
.retrouvez-card:nth-child(3) { animation-delay: 2.6s; }
.retrouvez-card:nth-child(4) { animation-delay: 0.65s; }

.retrouvez-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0088cc, transparent);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.retrouvez-card.vouch-card::before {
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

/* Scan light effect */
.retrouvez-card::after {
    content: '';
    position: absolute;
    top: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.035) 50%, transparent 80%);
    left: -80%;
    animation: cardScan 6s ease-in-out infinite;
    pointer-events: none;
}
.retrouvez-card:nth-child(1)::after { animation-delay: 0.5s; }
.retrouvez-card:nth-child(2)::after { animation-delay: 2s; }
.retrouvez-card:nth-child(3)::after { animation-delay: 3.5s; }
.retrouvez-card:nth-child(4)::after { animation-delay: 5s; }

.retrouvez-card:hover {
    animation: none;
    transform: translateY(-14px);
    border-color: rgba(0, 136, 204, 0.3);
    box-shadow: 0 25px 60px rgba(0, 136, 204, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.retrouvez-card.vouch-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.retrouvez-card:hover::before {
    opacity: 1;
}

.retrouvez-card-icon {
    width: 74px;
    height: 74px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15), rgba(0, 136, 204, 0.08));
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #0088cc;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    animation: iconPulseGlow 3.5s ease-in-out infinite;
}
.retrouvez-card:nth-child(1) .retrouvez-card-icon { animation-delay: 0.5s; }
.retrouvez-card:nth-child(2) .retrouvez-card-icon { animation-delay: 1.8s; }
.retrouvez-card:nth-child(3) .retrouvez-card-icon { animation-delay: 3.1s; }
.retrouvez-card:nth-child(4) .retrouvez-card-icon { animation-delay: 1.1s; }

.retrouvez-card:hover .retrouvez-card-icon {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.25), rgba(0, 136, 204, 0.12));
}

.vouch-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1)) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15) !important;
}

.retrouvez-card.vouch-card:hover .retrouvez-card-icon {
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.2)) !important;
}

.retrouvez-type-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.retrouvez-type-badge.vouch {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.retrouvez-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.retrouvez-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
    flex-grow: 1;
}

.retrouvez-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.18), rgba(0, 102, 170, 0.12));
    border: 1px solid rgba(0, 136, 204, 0.35);
    border-radius: 12px;
    color: #0099dd;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    margin-top: 0.5rem;
}

.retrouvez-btn:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.3), rgba(0, 102, 170, 0.22));
    border-color: rgba(0, 136, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3);
    color: #22aaff;
}

.vouch-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.12)) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: var(--primary) !important;
}

.vouch-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.22)) !important;
    border-color: rgba(99, 102, 241, 0.65) !important;
    color: #818cf8 !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35) !important;
}

/* Modal Vouch */
.vouch-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vouch-modal.active {
    opacity: 1;
    pointer-events: all;
}

.vouch-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.vouch-modal-content {
    position: relative;
    z-index: 1;
    background: rgba(12, 12, 24, 0.97);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.08);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vouch-modal.active .vouch-modal-content {
    transform: translateY(0) scale(1);
}

.vouch-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.vouch-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.vouch-modal-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 1.8rem;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.vouch-modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.vouch-modal-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.vouch-modal-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 1.5rem auto;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .retrouvez-grid {
        grid-template-columns: 1fr;
    }
    .retrouvez-card:last-child {
        grid-column: 1;
    }
    .vouch-modal-content {
        padding: 2.5rem 1.5rem;
        border-radius: 22px;
    }
    .vouch-modal-content h3 {
        font-size: 1.3rem;
    }
    .vouch-modal-text {
        font-size: 0.95rem;
    }
    .retrouvez-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .retrouvez-card {
        padding: 1.8rem 1.2rem;
    }
}
