/* ========= CONTAINER & ANIMATION ========= */
.remastered-content {
    /* Légère animation de fondu à l'affichage */
    animation: fadeIn 1s ease-out;
}

/* ---------- Fade In Animation ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========= BACKGROUND GRADIENT ========= */
.bg-dark-gradient {
    background: linear-gradient(135deg, #2d3f59, #71287b);
    background-size: 200% 200%;
    animation: rotate-bg 10s ease infinite;
}

/* ---------- Background Rotation Animation ---------- */
@keyframes rotate-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========= TYPOGRAPHY & TEXT EFFECTS ========= */
.text-shadow {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.692);
}

/* ========= ONGLETS (TABS) ========= */
.cyber-tab {
    background: rgba(0, 0, 0, 0.845);
    border: none;
    transition: background 0.3s, transform 0.3s;
}
.cyber-tab:hover {
    background: linear-gradient(rgba(66, 32, 108, 0.952), rgba(47, 98, 120, 0.845)); ;
}
.nav-pills .nav-link.active {
    background-color: rgb(8, 36, 150);
    box-shadow: 0 0 45px rgba(28, 0, 240, 1);
    color: #fff;
}

/* ========= PROJECT CARDS ========= */
.veille-card {
    height: 38.5rem; /* ou plus si besoin */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 8px;
}


.veille-card img {
    max-height: 300px; /* fixe la hauteur de l'image */
    object-fit: cover;
    border-radius: 8px;
}

.veille-card h5 {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.veille-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* <-- limite à 5 lignes */
    -webkit-box-orient: vertical;
    flex-grow: 1; /* pour occuper l'espace restant si besoin */
    margin-bottom: 1rem;
}

.veille-card button {
    margin-top: auto; /* pousse le bouton en bas */
}


/* ========= BUTTONS ========= */
.btn-primary {
    background: rgba(0, 0, 0, 0.63);
    border: none;
    transition: background 0.3s, transform 0.3s;

}
.btn-primary:hover {
    background: linear-gradient(to right, rgb(33, 33, 62), rgb(79, 32, 95));
    transform: translateY(-3px);
    transition: all 2s ease;
}

/* ========= RESPONSIVE TWEAKS ========= */
@media (max-width: 800px) {
    .logo {
        width: 80px;
    }
}

.veille-card {
    font-size: 0.9rem;
}