:root {
    --c1: #10b981;
    --c2: #0a0a0a;
    
    --b1: #e5e5e5;
    --b2: #262626;
    
    --d1: #171717;
    --d2: #a3a3a3;
    --d3: #737373;
    --d4: #262626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--c2);
    color: var(--b1);
    overflow-x: hidden;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#splash-screen div {
    font-size: 1.75rem;
    color: var(--b1);
    padding: 20px 40px;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#splash-screen:hover div {
    transform: scale(1.05);
}

/* ─── Audio Control ─── */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 23, 23, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--b2);
    border-radius: 12px;
    padding: 10px 16px;
}

.audio-control.visible {
    display: flex;
}

.audio-icon {
    cursor: pointer;
    color: var(--b1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.audio-slider {
    display: flex;
    align-items: center;
}

.audio-slider input {
    display: block;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* ─── Nav ─── */
nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(23, 23, 23, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--b2);
    border-radius: 9999px;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 0 4px;
}

.nav-indicator {
    position: absolute;
    background: var(--b1);
    border-radius: 9999px;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    z-index: -1;
    height: 40px;
}

.nav-item {
    padding: 10px 16px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    min-width: 90px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--b1);
}

.nav-item.active {
    color: var(--d1);
}

/* ─── Main pages ─── */
main {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 10;
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), 
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

main.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 32px;
}

.content-wrapper {
    width: 100%;
    max-width: 640px;
}

/* ─── Profile Card ─── */
.profile-card {
    background: rgba(23, 23, 23, 0.8);
    border: 1px solid var(--b2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
    animation: slideUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
}

.profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--b1);
}

.profile-card p {
    color: var(--d2);
    font-size: 16px;
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(229, 229, 229, 0.7);
    transition: all 300ms ease-out;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--b1);
    transform: translateY(-4px) scale(1.1);
}

.social-links svg {
    width: 36px;
    height: 36px;
}

/* ─── Music Player ─── */
.music-player {
    background: rgba(23, 23, 23, 0.8);
    border: 1px solid var(--b2);
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 16px;
    animation: slideUp 600ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
    opacity: 0;
    width: 100%;
    overflow: hidden;
}

.player-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.album-art {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.song-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.song-title {
    font-weight: 600;
    color: var(--b1);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: var(--d2);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.play-button, .skip-button {
    background: var(--b1);
    color: var(--d1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms;
    flex-shrink: 0;
}

.play-button {
    width: 32px;
    height: 32px;
}

.skip-button {
    width: 28px;
    height: 28px;
    background: var(--d4);
    border: 1px solid var(--b2);
    color: var(--b1);
}

.play-button:hover { background: rgba(229, 229, 229, 0.9); }
.skip-button:hover  { background: rgba(38, 38, 38, 0.8); }

.seek-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.seek-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
}

.time-display {
    font-size: 11px;
    color: var(--d3);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Portfolio Grid ─── */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 1280px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: rgba(23, 23, 23, 0.4);
    border: 1px solid var(--b2);
    border-radius: 8px;
    padding: 24px;
    animation: slideUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transition: transform 300ms ease;
}

.card:hover { transform: translateY(-4px); }

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--b1);
    color: var(--d1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card h2 {
    color: var(--b1);
    font-size: 24px;
    font-weight: 600;
}

/* ─── Info list ─── */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    color: var(--d2);
    font-size: 16px;
    line-height: 1.5;
}

.info-label {
    color: var(--b1);
    font-weight: 500;
}

/* ─── Timeline ─── */
.timeline {
    position: relative;
    padding-top: 12px;
}

.timeline-line {
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 24px;
    width: 1px;
    background: var(--b2);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--b1);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.timeline-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-title {
    color: var(--b1);
    font-weight: 600;
    font-size: 18px;
}

.timeline-link {
    cursor: pointer;
    color: var(--b1);
}

.timeline-link:hover { color: var(--c1); }

.timeline-link svg {
    width: 16px;
    height: 16px;
}

.timeline-date {
    font-size: 14px;
    color: var(--d2);
    background: var(--d4);
    padding: 4px 12px;
    border-radius: 9999px;
    width: fit-content;
}

.timeline-description {
    color: var(--d2);
    font-size: 16px;
    line-height: 1.5;
}

/* ─── Contact ─── */
.contact-card {
    background: rgba(23, 23, 23, 0.4);
    border: 1px solid var(--b2);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: transform 300ms ease, background 300ms ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    background: rgba(23, 23, 23, 0.6);
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contact-info-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.contact-text {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.contact-title {
    color: var(--b1);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-value {
    color: var(--d2);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-link {
    cursor: pointer;
    transition: all 300ms;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-link:hover { background: rgba(229, 229, 229, 0.1); }

.contact-link svg {
    width: 24px;
    height: 24px;
    color: rgba(229, 229, 229, 0.7);
}

.status-indicator {
    text-align: center;
    padding: 16px;
}

.status-indicator p {
    color: var(--d2);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.status-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: var(--d3);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--c1);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ─── Mobile breakpoint ─── */
@media (max-width: 640px) {

    /* Nav reste centré, audio control va en bas */
    nav {
        top: 16px;
        /* réduire le padding pour gagner de la place */
        padding: 6px;
    }

    .nav-item {
        min-width: 72px;
        font-size: 13px;
        padding: 8px 12px;
    }

    /* Déplacer le contrôle audio en bas à droite pour éviter la collision */
    .audio-control {
        top: auto;
        bottom: 24px;
        right: 16px;
        padding: 8px 12px;
    }

    .audio-slider input {
        width: 60px;
    }

    /* Profile */
    .profile-card {
        padding: 20px 16px;
    }

    .profile-image {
        width: 96px;
        height: 96px;
        margin-bottom: 16px;
    }

    .profile-card h1 {
        font-size: 20px;
    }

    .profile-card p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .social-links svg {
        width: 28px;
        height: 28px;
    }

    .social-links a {
        padding: 10px;
    }

    /* Music player */
    .album-art {
        width: 60px;
        height: 60px;
    }

    .song-title {
        font-size: 14px;
    }

    .song-artist {
        font-size: 12px;
    }

    .time-display {
        font-size: 10px;
    }

    .play-button {
        width: 28px;
        height: 28px;
    }

    .skip-button {
        width: 24px;
        height: 24px;
    }

    /* Cards */
    .card {
        padding: 16px;
    }

    .card h2 {
        font-size: 18px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Contact */
    .contact-card {
        padding: 16px;
    }

    .contact-title {
        font-size: 16px;
    }

    .contact-value {
        font-size: 13px;
    }

    .contact-info-wrapper {
        gap: 12px;
    }

    /* Container padding top ajusté */
    .container {
        padding-top: 90px;
        padding-bottom: 80px; /* espace pour l'audio control en bas */
    }
}

/* ─── Scrollbar ─── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
