@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

#portfolio {
    background-color: white;
    background-image: url('https://www.transparenttextures.com/patterns/connected.png');
    background-repeat: repeat;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(103, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(103, 126, 234, 0.8);
    }
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.gradient-text {
    background: linear-gradient(to right, #46494e, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.txtnoir {
    color: black;
}

/* PLAYER CONTAINER - Layout horizontal moderne */
.carousel-container {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px 50px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 10px 40px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 550px;
    height: 550px;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%, rgba(59, 130, 246, 0.03) 100%);
    pointer-events: none;
}

.carousel-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.player {
    display: none;
    width: 100%;
}

.player.active {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 60px;
    animation: fadeInPlayer 0.5s ease-out;
}

.player.active > .image-container {
    flex-shrink: 0;
}

.player.active > .player-content-wrapper {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeInPlayer {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* IMAGE CONTAINER - Effet vinyle avec animation */
.image-container {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
    z-index: 1;
}

.image-container:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.image-container:hover img {
    transform: scale(1.08);
}

/* PLAYER CONTENT - Wrapper pour la partie droite */
.player-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

/* TRACK INFO - Typography améliorée */
.track-info {
    text-align: left;
    margin-bottom: 30px;
    padding: 0;
}

.track-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.track-artist {
    font-size: 20px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.track-album {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 400;
}

/* PROGRESS BAR - Design moderne avec glow */
.progress-container {
    width: 100%;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    height: 14px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) inset;
}

.progress-container:hover {
    height: 16px;
    transition: height 0.2s ease;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #334155 0%, #1e293b 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    box-shadow: 0 0 20px rgba(30, 41, 59, 0.4);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* TIME INFO */
.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* VOLUME CONTROL - Design premium */
.volume-control {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 0;
    margin-bottom: 35px;
    padding: 22px 35px;
    width: 100%;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.volume-icon {
    width: 30px;
    height: 30px;
    color: #1e293b;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.volume-slider {
    flex: 1;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #1e293b 0%, #1e293b 70%, #e2e8f0 70%, #e2e8f0 100%);
    border-radius: 10px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) inset;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(30, 41, 59, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.9);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 6px 20px rgba(30, 41, 59, 0.5),
        0 0 0 4px rgba(255, 255, 255, 1),
        0 0 20px rgba(30, 41, 59, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 6px 20px rgba(30, 41, 59, 0.5),
        0 0 20px rgba(30, 41, 59, 0.3);
}

/* NAVIGATION - Boutons glassmorphism - EN DEHORS du player */
.carousel-container > .navigation {
    display: none;
}

.player-content-wrapper .navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    margin-top: 0;
}

.nav-button {
    width: 75px;
    height: 75px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-button:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(30, 41, 59, 0.3);
}

.nav-button:active {
    transform: translateY(-2px) scale(1.02);
}

.nav-button svg {
    width: 32px;
    height: 32px;
    transition: all 0.3s;
}

.nav-button.play-pause {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    box-shadow: 
        0 15px 40px rgba(30, 41, 59, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.nav-button.play-pause:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    transform: translateY(-6px) scale(1.12);
    box-shadow: 
        0 25px 50px rgba(30, 41, 59, 0.5),
        0 0 40px rgba(30, 41, 59, 0.4);
}

.nav-button.play-pause svg {
    width: 38px;
    height: 38px;
}

/* DOTS - Cachés */
.dots {
    display: none;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 1rem;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.track-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.track-item.active {
    background: linear-gradient(to right, #f1f5f9, #e2e8f0);
    border-left: 4px solid #1e293b;
}

.track-item img {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.track-item-info {
    flex: 1;
}

.track-item-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.track-item-artist {
    font-size: 0.75rem;
    color: #64748b;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .sidebar {
        position: static;
        max-height: 300px;
        margin-bottom: 2rem;
    }
    
    .carousel-container {
        padding: 40px;
        min-height: auto;
        height: auto;
        flex-direction: column;
        gap: 35px;
    }
    
    .player.active {
        flex-direction: column;
        gap: 35px;
        height: auto;
    }
    
    .player.active > .image-container {
        width: 100%;
        max-width: 400px;
        height: 400px;
        margin: 0 auto;
    }
    
    .player.active > .player-content-wrapper {
        max-width: 100%;
    }
    
    .track-info {
        text-align: center;
    }
    
    .track-title {
        font-size: 30px;
    }
    
    .track-artist {
        font-size: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .carousel-container {
        padding: 30px 20px;
        min-height: auto;
        height: auto;
    }
    
    .player.active {
        flex-direction: column;
        gap: 30px;
        height: auto;
    }
    
    .player.active > .image-container {
        width: 100%;
        max-width: 100%;
        height: 320px;
        margin: 0;
    }
    
    .player.active > .player-content-wrapper {
        max-width: 100%;
    }
    
    .track-title {
        font-size: 26px;
    }
    
    .track-artist {
        font-size: 18px;
    }
    
    .nav-button {
        width: 60px;
        height: 60px;
    }
    
    .nav-button.play-pause {
        width: 70px;
        height: 70px;
    }
    
    .nav-button svg {
        width: 26px;
        height: 26px;
    }
    
    .nav-button.play-pause svg {
        width: 32px;
        height: 32px;
    }
    
    .volume-icon {
        width: 26px;
        height: 26px;
    }
    
    .volume-control {
        padding: 18px 25px;
    }
}