/* =====================================
   VARIABLES - PALETTE PERHOPES
===================================== */
:root {
    --black: #000000;
    --blood-red: #8B0000;
    --dark-red: #4A0000;
    --crimson: #DC143C;
    --snow: #FDFBFC;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --electric-blue: #00FFFF;
    --neon-green: #39FF14;
}

/* =====================================
   RESET & BASE
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--black);
    color: var(--snow);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================
   GLASSMORPHISM EFFECT
===================================== */
.glass-effect {
    background: rgba(253, 251, 252, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(253, 251, 252, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.2);
}

/* =====================================
   NAVIGATION
===================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(220, 20, 60, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--snow);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--crimson);
    text-shadow: 0 0 10px var(--crimson);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--blood-red);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--blood-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =====================================
   HAMBURGER MENU (CORRECTION)
===================================== */
.hamburger {
    display: none; /* Caché par défaut sur desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--crimson);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
    display: block;
}

/* Animation du hamburger quand actif */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--electric-blue);
}

/* Menu mobile caché par défaut */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* =====================================
   RESPONSIVE DESIGN (SECTION CORRIGÉE)
===================================== */
@media (max-width: 768px) {
    /* Afficher le hamburger sur mobile */
    .hamburger {
        display: flex;
    }

    /* Masquer le menu normal et créer le menu mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(139, 0, 0, 0.1));
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        list-style: none;
    }

    /* Menu mobile actif */
    .nav-menu.active {
        left: 0;
    }

    /* Style des liens dans le menu mobile */
    .nav-menu .nav-link {
        font-size: 2.2rem;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--snow);
        text-decoration: none;
        text-transform: uppercase;
        transition: all 0.3s ease;
        position: relative;
        padding: 15px 30px;
        border-radius: 10px;
    }

    .nav-menu .nav-link:hover {
        color: var(--crimson);
        text-shadow: 0 0 20px var(--crimson);
        background: rgba(220, 20, 60, 0.1);
        transform: scale(1.05);
    }

    /* Animation d'entrée des liens */
    .nav-menu.active .nav-link {
        animation: slideInFromRight 0.6s ease forwards;
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }

    /* Overlay pour fermer le menu */
    .nav-menu.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }
}

/* Animation pour les liens du menu mobile */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =====================================
   HERO SECTION
===================================== */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-invitation {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.scroll-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--snow);
    text-shadow: 0 0 10px var(--blood-red);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--snow);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--crimson);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
    box-shadow: 0 0 5px var(--crimson);
}

.scroll-arrow {
    color: var(--snow);
    font-size: 1.5em;
    animation: bounce 2s infinite;
}

/* =====================================
   SECTIONS
===================================== */
.music-section,
.about-section,
.contact-section {
    padding: 100px 0;
    min-height: 100vh;
    background: var(--black);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--snow);
    text-shadow: 0 0 20px var(--blood-red);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--blood-red), var(--crimson));
    box-shadow: 0 0 10px var(--crimson);
}

/* =====================================
   MUSIC SECTION
===================================== */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.track-card {
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.track-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.4);
}

.track-image {
    position: relative;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
}

.track-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.track-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 4em;
    color: var(--snow);
    text-shadow: 0 0 20px var(--crimson);
}

.track-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--snow);
    letter-spacing: 2px;
}

.track-genre {
    color: var(--crimson);
    font-size: 1.1em;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.track-actions {
    display: flex;
    gap: 15px;
}

.stream-button,
.buy-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    text-transform: uppercase;
}

.stream-button {
    background: var(--blood-red);
    color: var(--snow);
}

.buy-button {
    background: transparent;
    color: var(--crimson);
    border: 2px solid var(--crimson);
}

.stream-button:hover {
    background: var(--crimson);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

.buy-button:hover {
    background: var(--crimson);
    color: var(--snow);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

/* =====================================
   ABOUT SECTION
===================================== */
.about-content {
    padding: 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(253, 251, 252, 0.9);
}

/* =====================================
   CONTACT SECTION
===================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    padding: 40px;
    text-align: center;
}

.contact-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--crimson);
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--snow);
    font-size: 1.5em;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.social-link:hover {
    color: var(--crimson);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.4);
}

.contact-form-container {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(253, 251, 252, 0.05);
    border: 2px solid rgba(253, 251, 252, 0.1);
    border-radius: 8px;
    color: var(--snow);
    font-size: 1em;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Rajdhani', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(253, 251, 252, 0.6);
    font-size: 1em;
    transition: all 0.3s ease;
    pointer-events: none;
    letter-spacing: 1px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label,
.form-group.filled label {
    top: -10px;
    left: 10px;
    font-size: 0.8em;
    color: var(--crimson);
    background: var(--black);
    padding: 0 5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.submit-btn {
    padding: 15px 30px;
    background: var(--blood-red);
    color: var(--snow);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
}

.submit-btn:hover:not(:disabled) {
    background: var(--crimson);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading {
    animation: pulse-loading 1.5s infinite;
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status.show {
    opacity: 1;
}

.form-status.success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.form-status.error {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid var(--crimson);
    color: var(--crimson);
}

/* =====================================
   ANIMATIONS
===================================== */
@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   SCROLLBAR
===================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--blood-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--crimson);
}

/* =====================================
   SELECTION
===================================== */
::selection {
    background: var(--blood-red);
    color: var(--snow);
}

::-moz-selection {
    background: var(--blood-red);
    color: var(--snow);
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */
@media (max-width: 1024px) {
    .tracks-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-title {
        font-size: 2.5em;
        letter-spacing: 3px;
    }
    
    .about-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 3px;
    }

    /* Responsive Layout */
    .navbar {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 15px 20px;
    }
    
    .section-title {
        font-size: 2em;
        letter-spacing: 2px;
        margin-bottom: 40px;
    }
    
    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .track-card,
    .about-content,
    .contact-info,
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .track-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .scroll-text {
        font-size: 1em;
        letter-spacing: 2px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .about-text p {
        font-size: 1.2em;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .track-title {
        font-size: 1.2em;
        letter-spacing: 1px;
    }
    
    .about-text p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .scroll-invitation {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 0.9em;
        letter-spacing: 1px;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 25px 15px;
    }
}

/* =====================================
   UTILITIES
===================================== */
.loading {
    animation: pulse-loading 1.5s infinite;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* =====================================
   ACCESSIBILITY
===================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--crimson);
    outline-offset: 2px;
}

/* =====================================
   CORRECTION BOUTON PAUSE - CENTRAGE FIXE
===================================== */

.play-overlay i {
    /* Centrage parfait et taille fixe */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 24px !important;
    height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État normal - Play */
.play-overlay i.fa-play {
    /* Compensation pour centrer le triangle play */
    margin-left: 2px;
}

/* État lecture - Pause */
.play-overlay i.fa-pause {
    /* Pause déjà centrée naturellement */
    margin-left: 0;
}

/* État chargement - Spinner */
.play-overlay i.fa-spinner {
    margin-left: 0;
    animation: fa-spin 1s infinite linear;
}

/* Correction lors des transitions */
.play-overlay.playing i,
.play-overlay.loading i,
.play-overlay.paused i {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Animation douce lors du changement d'icône */
.play-overlay i::before {
    transition: all 0.2s ease;
    display: block;
    text-align: center;
}

/* Hover - éviter les décalages */
.track-card:hover .play-overlay i {
    transform: translate(-50%, -50%) scale(1.15) !important;
}

/* État actif - clic */
.play-overlay:active i {
    transform: translate(-50%, -50%) scale(0.95) !important;
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .play-overlay i {
        font-size: 18px !important;
        width: 20px !important;
        height: 20px !important;
    }
}
