@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

/* ========== BASE ========= */

body {
    background-color: #1e1e1e;
    color: #5a3a5c;
    font-family: 'Fira Code', monospace;
    text-align: center;
    margin: 0;
    padding: 0;
}

header {
    background-image: url("berserk_chat_1.png");
    background-size: cover;
    background-position: center -450px;
    background-attachment: fixed;
    background-color: #1e1e1e; /* couleur de fond de secours */
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-transform: uppercase;
    font-size: 2rem;
    color: #a259ff; /* violet fluo */
    position: relative;
}

/* Filtre sombre semi-transparent pour rendre le texte lisible */
header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* assombrit légèrement */
    z-index: 0;
}

header * {
    position: relative;
    z-index: 1;
}

/* Glitch supprimé – si tu veux le garder, réactive ce bloc :
@keyframes glitch {
    0% { text-shadow: 2px 2px #ff0000; }
    50% { text-shadow: -2px -2px #00ff00; }
    100% { text-shadow: 2px 2px #0000ff; }
}
*/


/* ========== NAVIGATION ========= */

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 10px;
}

nav ul li a {
    color: #7d3c98;
    background-color: #2c2c2c;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: none;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #ff3c3c;
    color: #fff;
    transform: scale(1.05);
}

/* ========== SECTIONS ========= */

.section {
    margin: 50px auto;
    max-width: 80%;
    color: #5a3a5c;
}

#typing-text {
    font-size: 1.2rem;
    color: #7d3c98;
}

/* Appliquer la couleur #7d3c98 aux titres et contenus des sections */
.section h2, .section p {
    color: #7d3c98;
}

/* Appliquer le style pour les livres dans la section Book Reviews */
.book h3, .book p {
    color: #7d3c98;
}

/* ========== TERMINAL STYLE ========= */

.terminal {
    background-color: #000;
    color: #5a3a5c;
    padding: 20px;
    border: 2px solid #5a3a5c;
    text-align: left;
    max-width: 900px;
    margin: auto;
}

/* ========== FOOTER ========= */

footer {
    margin-top: 50px;
    padding: 10px;
    background-color: #1e1e1e;
    color: #5a3a5c;
}

/* ========== LIENS ========= */

/* Liens normaux */
.section a:link,
.section a:visited,
footer a:link,
footer a:visited,
.terminal a:link,
.terminal a:visited {
    color: #9c4dac;
    text-decoration: underline;
}

/* Liens spéciaux à ne pas souligner */
nav ul li a,
nav ul li a:visited,
.card-link a,
.card-link a:visited,
.card-link *,
.card-link {
    text-decoration: none !important;
}

/* Hover global */
a:hover {
    color: #ff3c3c;
}

/* ========== PROFIL ========= */

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #7d3c98;
    margin: 15px auto;
    display: block;
    box-shadow: 0 0 15px #9400D3;
}

/* ========== CARD STYLE ========= */

.card-link {
    display: block;
    max-width: 900px;
    margin: 20px auto;
    cursor: pointer;
}

.card {
    display: flex;
    max-height: 220px;
    justify-content: space-between;
    align-items: stretch;
    background-color: #2c2c2c;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.01);
}

.card-content {
    padding: 15px;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.card-content h3,
.card-content p,
.card-meta {
    color: #7d3c98;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.card-content p {
    margin: 0 0 15px;
}

.card-meta {
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.card-image {
    width: 180px;
    height: auto;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ========== PARTICLE BACKGROUND ========= */
#particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
  }
  
