:root {
    --base: #1e1e2e;
    --mantle: #181825;
    --surface0: #313244;
    --mauve: #cba6f7;
    --blue: #89b4fa;
    --rosewater: #f5e0dc;
    --text: #cdd6f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cascadia Code", "CaskaydiaCove Nerd Font", monospace;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--base);
    color: var(--text);
}

/* Background propre et homogène */
.background {
    position: fixed;
    inset: 0;
    background: url("../img/wallpaper.jpg") center center no-repeat;
    background-size: cover;
    filter: blur(10px) brightness(0.75);
    transform: scale(1.05); /* légère mise à l’échelle pour compenser la résolution plus basse */
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,30,46,0.85);
    z-index: -2;
}

canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* Contenu centré */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Carte */
.card {
    max-width: 750px;
    padding: 40px;
    background: rgba(49, 50, 68, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Encadré gauche */
.profile-box {
    min-width: 160px;
    height: 160px;
    background: linear-gradient(145deg, var(--mauve), var(--blue));
    border-radius: 24px;
    box-shadow: 0 0 25px rgba(203,166,247,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--mantle);
}

.profile-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px; /* même arrondi que la box */
}

.content h1 {
    color: var(--rosewater);
    margin-bottom: 10px;
}

.content h2 {
    color: var(--blue);
    margin-bottom: 20px;
}

.content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
     gap: 8px;
}

.bluesky-btn {
    background-color: #1DA1F2; /* bleu clair Bluesky */
}

.bluesky-btn:hover {
    background-color: #0d8ddb;
}

.github-btn {
    background-color: #333; /* noir GitHub */
}

.github-btn:hover {
    background-color: #555;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, rgba(30,30,46,0), rgba(24,24,37,0.85));
    padding: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
        text-align: center;
    }
}