:root {
--neon-blue: #00f3ff;
--cyber-purple: #bc00ff;
--matrix-green: #00ff4c;
}

body {
margin: 0;
background: #0a0a24;
font-family: 'Consolas', monospace;
color: var(--neon-blue);
overflow-x: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(365px, 300px)); /* Ajustement dynamique */
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.terminal-bg {
position: relative;
min-height: 100vh;
background:
radial-gradient(circle at 50% 50%, #1a1a3a 0%, #0a0a24 100%),
repeating-linear-gradient(45deg,
transparent,
transparent 25px,
rgba(0, 243, 255, 0.1) 25px,
rgba(0, 243, 255, 0.1) 50px);
}

.matrix-effect {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
0deg,
rgba(0, 255, 76, 0.05) 0%,
transparent 10%
);
animation: matrix 60s linear infinite;
}

@keyframes matrix {
from { background-position: 0 0; }
to { background-position: 0 100vh; }
}

.cyber-card {
position: relative;
width: 300px;
border: 2px solid var(--neon-blue);
border-radius: 10px;
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}

.cyber-card:hover {
transform: translateY(-10px);
box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

.hologram-effect {
position: absolute;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
45deg,
transparent,
transparent 5px,
rgba(0, 243, 255, 0.1) 5px,
rgba(0, 243, 255, 0.1) 10px
);
}
.card-link {
display: block;
position: relative;
text-decoration: none;
color: inherit;
height: 100%;
}

.cyber-card {
width: fit-content;
height: 520px; /* Hauteur fixe */
overflow: hidden;
}

/* Ajouter ces nouveaux styles */
.image-container {
    position: relative;
    width: 300px;
    height: 400px; /* Ratio 3:4 */
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.cyber-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s, filter 0.3s;
}

.cyber-card:hover img {
    transform: scale(1.05);
    filter: grayscale(30%) brightness(1.1) contrast(110%);
}

.hologram-effect {
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
    animation: hologram-pulse 4s infinite;
}

@keyframes hologram-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

.cyber-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,36,0.9) 30%);
    padding: 20px;
    z-index: 3;
}

.access-btn {
    position: relative;
    overflow: hidden;
    transition: 0.3s all ease;
}

.access-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188,0,255,0.4), transparent);
    transition: 0.6s;
}

.cyber-card:hover .access-btn::after {
    left: 100%;
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #111; /* Fond sombre */
    color: white; /* Texte blanc */
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

footer a {
    color: #4da6ff; /* Bleu clair */
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}


