:root {
    --bg-primary: #120726;
    --bg-secondary: #221a38;
    --bg-card: rgba(28, 15, 46, 0.85);
    --blue-accent: #7ab3fa;
    --purple-accent: #b06aff;
    --magenta-accent: #ff5ebc;
    --text-main: #fff8ff;
    --text-secondary: #d1c7fc;
    --text-muted: #9f8ec6;
    --glass-blur: blur(18px);
    --shadow-glass: 0 8px 32px #b06aff15, 0 2px 14px #0002;
    --radius: 19px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'JetBrains Mono', monospace;
    background: linear-gradient(120deg, #10142b 80%, #262b6b 100%);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
/* --- ENTRY PAGE (full screen, centré, effet glass) --- */
.entry-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; /* laisse la vidéo/particles visible */
    pointer-events: auto;
}
.entry-page.fade-out {
    opacity: 0;
    pointer-events: none;
}
.entry-container {
    width: 100%;
    text-align: center;
}
.entry-text {
    font-family: 'Inter', 'JetBrains Mono', Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    text-align: center;
    text-shadow:
        0 2px 32px #fff8,
        0 0 5px #ab32ae88,
        0 0 28px #b800a6;
    filter: blur(0.1px);
    cursor: pointer;
    transition: 
        color 0.23s,
        filter 0.19s,
        text-shadow 0.19s;
    opacity: 0.92;
    user-select: none;
    outline: none;
    /* Pour un effet d’apparition fade */
    animation: fadeinentry 1.3s cubic-bezier(.7,.15,.18,1.19) both;
}
.entry-text:hover {
    color: #c866f2;
    filter: blur(0);
    text-shadow:
        0 2px 48px #fff,
        0 0 8px #bc4afc,
        0 0 30px #a635c2;
    opacity: 1;
}
@keyframes fadeinentry {
    from { opacity: 0; transform: scale(1.13);}
    to   { opacity: 0.92; transform: scale(1);}
}

/* --- AUDIO CONTROL (fixed, glass, mute/unmute) --- */
.audio-control {
    position: fixed;
    bottom: 2.6rem;
    right: 2.4rem;
    width: 56px;
    height: 56px;
    background: rgba(40, 70, 255, 0.13);
    border: 2px solid #3e63ff44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3e63ff;
    font-size: 2.1rem;
    transition: all 0.18s;
    backdrop-filter: blur(11px);
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 24px #395bff12;
    opacity: 0;
    pointer-events: none;
}
.audio-control.visible {
    opacity: 1;
    pointer-events: auto;
}
.audio-control:hover {
    background: rgba(62, 99, 255, 0.21);
    border-color: #3e63ff77;
    transform: scale(1.11);
    color: #fff;
}
.audio-control.muted {
    background: rgba(255, 40, 70, 0.13);
    border-color: #ff4444b8;
    color: #ff4444;
}
.audio-control.muted .fas {
    color: #ff4444;
}

@media (max-width: 700px) {
    .entry-text {
        font-size: 1.25rem;
        padding: 16px 18px;
    }
    .audio-control {
        bottom: 1.2rem;
        right: 1.1rem;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

.ambient-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 30% 40%, rgba(90,110,255,0.11) 0%, transparent 70%),
                radial-gradient(circle at 70% 60%, rgba(140,90,255,0.10) 0%, transparent 70%);
    z-index: 0;
    animation: ambientPulse 14s infinite alternate;
}
@keyframes ambientPulse {
    0% { opacity: .4; }
    100% { opacity: .9; }
}

.main-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    gap: 40px;
    padding: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.widgets-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 340px;
    flex-shrink: 0;
}

.widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass);
    border: 1.5px solid rgba(90,110,255,0.13);
    backdrop-filter: var(--glass-blur);
    padding: 24px;
    transition: border .2s, box-shadow .2s, transform .15s;
}
.widget:hover {
    border: 2px solid var(--blue-accent);
    box-shadow: 0 10px 40px #395bff22;
    transform: scale(1.02) translateY(-2px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(120,130,220,0.09);
}
.widget-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #23244d;
    border: 1.2px solid #2e3a80;
}
.widget-icon i { color: var(--blue-accent); font-size: 16px; }

.widget-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.status-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6e7195;
}
.status-indicator.online { background: #23a55a; }
.status-indicator.idle { background: #e0b14b; }
.status-indicator.dnd { background: #d83947; }
.status-indicator.offline { background: #888ca7; }

.discord-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}
.avatar-container { position: relative; }
.avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--blue-accent);
    box-shadow: 0 0 18px #395bff28;
    background: #21243a;
    transition: border .2s, box-shadow .2s;
}
.avatar:hover {
    border-color: var(--purple-accent);
    box-shadow: 0 0 24px #9358ff40, 0 1px 14px #395bff80;
}

.status-badge {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    background: #888ca7;
}
.status-badge.online { background: #23a55a; }
.status-badge.idle { background: #e0b14b; }
.status-badge.dnd { background: #d83947; }
.status-badge.offline { background: #888ca7; }

.profile-section {
    flex: 1;
    max-width: 610px;
    display: flex;
    justify-content: center;
}

.profile-card {
    background: var(--bg-card);
    border-radius: 21px;
    box-shadow: 0 20px 60px #395bff19;
    border: 1.7px solid rgba(90,110,255,0.15);
    backdrop-filter: var(--glass-blur);
    padding: 45px 42px 30px 42px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.1s ease;
}
@keyframes fadeInUp {
    from { transform: translateY(34px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-bottom: 34px;
}
.profile-avatar { position: relative; flex-shrink: 0; }
.main-avatar-img {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 3px solid var(--blue-accent);
    background: #191d33;
    box-shadow: 0 0 36px #395bff22;
    transition: border .22s, box-shadow .22s;
    object-fit: cover;
}
.profile-avatar:hover .main-avatar-img {
    border-color: var(--purple-accent);
    box-shadow: 0 0 40px #9358ff60;
}
.avatar-border {
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 2px solid var(--blue-accent);
    border-radius: 50%;
    opacity: 0;
    transition: .23s;
}
.profile-avatar:hover .avatar-border { opacity: 1; }

.profile-details { flex: 1; }

.display-name {
    font-size: 2.3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #3e63ff, #9358ff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    letter-spacing: 1.3px;
}
.name-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3e63ff 60%, #9358ff 100%);
    transition: width 0.3s;
}
.display-name:hover .name-text::after { width: 100%; }

.bio-section {
    margin-bottom: 20px;
}
.bio-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    background: rgba(41,48,100,0.34);
    padding: 8px 18px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0;
    box-shadow: 0 2px 14px #395bff13;
    display: inline-block;
}
.typing-text { display: inline; }
.cursor-blink {
    animation: blink 1.08s infinite;
    color: var(--text-main);
    font-weight: bold;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(41,48,100,0.19);
    border-radius: 15px;
    display: inline-flex;
    border: 1px solid var(--blue-accent);
}
.status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #888ca7;
    animation: pulse 2s infinite;
}
.status-dot.online { background: #23a55a; }
.status-dot.idle { background: #e0b14b; }
.status-dot.dnd { background: #d83947; }
.status-dot.offline { background: #888ca7; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.57;} }

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.divider {
    height: 1.2px;
    background: linear-gradient(90deg, transparent, #395bff33, transparent);
    margin: 30px 0;
}

.social-links {
    margin-bottom: 30px;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 19px 19px;
    background: rgba(30,34,60,0.62);
    border-radius: 13px;
    border: 1.5px solid rgba(74,100,255,0.14);
    color: var(--text-secondary);
    transition: all 0.14s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-size: 1.07rem;
    font-weight: 600;
}
.social-link:hover {
    border: 2px solid var(--blue-accent);
    background: linear-gradient(90deg,#23245a 60%,#395bff18 100%);
    color: #fff;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 0 20px #395bff24;
}
.link-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: #21244a;
    border: 1.2px solid var(--blue-accent);
    flex-shrink: 0;
    transition: all .16s;
}
.social-link:hover .link-icon {
    background: var(--purple-accent);
    border-color: #fff;
    color: #fff;
}
.link-icon i { color: var(--blue-accent); font-size: 20px; }
.social-link:hover .link-icon i { color: #fff; }
.link-label { font-weight: 600; color: #a7b9ef; }
.social-link:hover .link-label { color: #fff; }
.link-arrow {
    opacity: 0; transform: translateX(-8px);
    transition: all 0.18s;
    color: var(--blue-accent);
}
.social-link:hover .link-arrow {
    opacity: 1; transform: translateX(0); color: #fff;
}

.footer {
    border-top: 1px solid rgba(74,100,255,0.13);
    padding-top: 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.copyright, .last-seen { display: flex; align-items: center; gap: 7px; }
.copyright i, .last-seen i { font-size: 12px; }

/* Notifications, custom cursor, responsive, etc. à garder si tu utilises */
.notification {
    position: fixed; top: 20px; right: 20px;
    background: var(--bg-card);
    border: 1.5px solid #3e63ffcc;
    border-radius: 12px;
    padding: 13px 19px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 600;
    box-shadow: 0 8px 32px #395bff22;
    backdrop-filter: var(--glass-blur);
    z-index: 10000;
    transform: translateX(400px); opacity: 0;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 10px; min-width: 260px;
}
.notification.show { transform: translateX(0); opacity: 1; }
.notification.success { border-color: #22c55e; }
.notification.error { border-color: #ef4444; }

@media (max-width: 1200px) {
    .main-container { flex-direction: column; gap: 28px; padding: 19px; }
    .widgets-section { width: 100%; max-width: 600px; flex-direction: row; gap: 16px; }
    .widget { flex: 1; }
}
@media (max-width: 768px) {
    .widgets-section { flex-direction: column; }
    .profile-header { flex-direction: column; text-align: center; gap: 19px; }
    .main-avatar-img { width: 100px; height: 100px; }
    .display-name { font-size: 1.8rem; }
    .links-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 7px; text-align: center; }
}
@media (max-width: 480px) {
    .main-container { padding: 10px; }
    .profile-card { padding: 21px 10px; }
    .widget { padding: 12px; }
    .display-name { font-size: 1.2rem; }
}
#spotify-album {
    width: 46px;    /* ou ce que tu veux, genre 40-56px */
    height: 46px;
    border-radius: 7px;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s;
}

#spotify-album[alt="No music playing"] {
    opacity: 0.45;
    /* Optionnel : un petit effet noir et blanc */
    filter: grayscale(1);
}
#bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: 0.30;        /* Plus ou moins visible */
    filter: blur(2.5px) brightness(0.55) saturate(1.1); /* Blur/assombrir si besoin */
    pointer-events: none; /* La vidéo ne bloque aucun clic */
}

/* Optionnel: Overlay foncé en plus */
.bg-video-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(120deg, #151c34bb 70%, #282a45cc 100%);
    z-index: -1;
    pointer-events: none;
}
/* ====== PROFILE CARD GLOW ====== */

.profile-card {
    background: linear-gradient(235deg, hsl(255 50% 10% / 0.80), hsl(255 50% 10% / 0) 33%),
                linear-gradient(45deg , hsl(222 50% 10% / 0.8), hsl(222 50% 10% / 0) 33%),
                linear-gradient(hsl(220deg 25% 5% / 0.85));
    border-radius: 24px;
    border: 1.5px solid hsl(222 12% 20%);
    box-shadow:
        0 0 40px 5px #4361ee66,      /* Glow bleu soft */
        0 4px 32px 0 #12123140,      /* Ombre douce */
        0 0.5px 0.5px 0 #3a0ca366;  /* Glow plus violet */
    transition:
        box-shadow 0.32s cubic-bezier(.25,.8,.25,1),
        transform 0.21s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
    position: relative;
    overflow: visible; /* important pour le glow */
    perspective: 900px;
}

/* Hover: Glow accentué + ombre dynamique */
.profile-card:hover {
    box-shadow:
        0 0 80px 16px #4361eebb,      /* Glow + fort bleu */
        0 8px 36px 0 #282a4560,      /* Ombre + lift */
        0 1.5px 3px 0 #3a0ca3aa;
    transform: translateY(-8px) scale(1.03);
}

.profile-card:after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: -10px;
    border-radius: 36px;
    z-index: 0;
    box-shadow: 0 0 70px 16px #4361ee66;
    opacity: 0.28;
}

@media (max-width: 700px) {
  .profile-card:after { display:none; }
}

/* ====== AVATAR GLOW ====== */
.profile-avatar img.main-avatar-img {
    box-shadow: 0 0 24px 6px #3a8bffcc, 0 2px 8px #161c3e;
    border-radius: 50%;
    transition: box-shadow .32s;
    position: relative;
    z-index: 2;
}
.profile-avatar img.main-avatar-img:hover {
    box-shadow: 0 0 48px 16px #4361eef9, 0 2px 8px #161c3e;
}
