/* ========================================
   MIXTRAL.COM - Styles
   Palette: Orange #FF6B00, Cyan #00A8E8,
            Gold #FFD100, Dark Blue #1A1F36
   ======================================== */

:root {
    /* Couleurs principales */
    --orange: #FF6B00;
    --orange-light: #FF8533;
    --orange-dark: #E55A00;
    --cyan: #00A8E8;
    --cyan-light: #33BBEE;
    --cyan-dark: #0088CC;
    --gold: #FFD100;
    --gold-light: #FFE033;
    --purple: #8B5CF6;
    --purple-light: #A78BFA;

    /* Couleurs neutres */
    --dark-blue: #1A1F36;
    --dark-blue-light: #252B48;
    --white: #FFFFFF;
    --gray-100: #F7F8FA;
    --gray-200: #E8EBF0;
    --gray-300: #C9CED6;
    --gray-600: #6B7280;

    /* Typographie */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-glow-orange: 0 0 30px rgba(255,107,0,0.4);
    --shadow-glow-cyan: 0 0 30px rgba(0,168,232,0.4);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   PLAYER BAR (Header fixe)
   ======================================== */

.player-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 31, 54, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
}

.player-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

.player-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-end;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 31, 54, 0.3) 0%,
        rgba(26, 31, 54, 0.5) 50%,
        rgba(26, 31, 54, 0.9) 100%
    );
    z-index: 2;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 107, 0, 0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange-light);
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.current-program {
    font-size: 0.95rem;
    color: var(--gray-200);
}

.current-program strong {
    color: var(--white);
    font-size: 1rem;
    margin-right: var(--space-xs);
}

/* Bouton Play */
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-glow-orange);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    white-space: nowrap;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255,107,0,0.6);
}

.btn-play:active {
    transform: translateY(0);
}

.btn-play.is-playing {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    box-shadow: var(--shadow-glow-cyan);
}

.btn-play.is-playing:hover {
    box-shadow: 0 0 40px rgba(0,168,232,0.6);
}

.btn-play.is-loading {
    opacity: 0.8;
    cursor: wait;
}

.play-icon,
.pause-icon {
    width: 22px;
    height: 22px;
}

.hidden {
    display: none !important;
}

/* TuneIn Link dans la barre */
.player-bar .tunein-link {
    color: var(--gray-300);
    font-size: 0.85rem;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--gray-600);
    border-radius: 20px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.player-bar .tunein-link:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.volume-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-300);
    flex-shrink: 0;
}

#volumeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volumeSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
    border: none;
}

/* TuneIn Link (footer) */
.footer .tunein-link {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.tunein-link:hover {
    color: var(--orange);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--gray-300);
    font-size: 0.9rem;
    animation: bounce 2s ease infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: var(--space-xs) auto 0;
}

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

/* ========================================
   NOW PLAYING SECTION
   ======================================== */

.now-playing {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
}

.now-playing h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.now-playing h2 .highlight {
    background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.now-playing-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.now-playing-image {
    flex: 0 0 50%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.now-playing-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, rgba(37, 43, 72, 1));
}

.now-playing-info {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.now-playing-card .program-name {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.now-playing-card .program-time {
    color: var(--gray-200);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.now-playing-card .program-desc {
    color: var(--gray-300);
    font-size: 1.1rem;
    line-height: 1.6;
}

.now-playing-card.is-chill .program-name { color: var(--cyan); }
.now-playing-card.is-chill .now-playing-image { background-image: url('chill.jpg'); }

.now-playing-card.is-80s .program-name { color: var(--gold); }
.now-playing-card.is-80s .now-playing-image { background-image: url('80.jpg'); }

.now-playing-card.is-electro .program-name { color: var(--purple); }
.now-playing-card.is-electro .now-playing-image { background-image: url('electro.jpg'); }

.now-playing-card.is-hits .program-name { color: var(--orange); }
.now-playing-card.is-hits .now-playing-image { background-image: url('nonstop-1.jpg'); }

.timezone-info {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-top: var(--space-lg);
}

/* Now Playing Responsive */
@media (max-width: 768px) {
    .now-playing h2 {
        font-size: 1.8rem;
    }

    .now-playing-card {
        flex-direction: column;
    }

    .now-playing-image {
        flex: none;
        height: 200px;
        min-height: auto;
    }

    .now-playing-image::after {
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        right: 0;
        background: linear-gradient(to bottom, transparent, rgba(37, 43, 72, 1));
    }

    .now-playing-info {
        padding: var(--space-lg);
        text-align: center;
    }

    .now-playing-card .program-name {
        font-size: 1.6rem;
    }
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */

.programs {
    padding: var(--space-2xl) 0;
    background: var(--dark-blue-light);
}

.programs h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: var(--space-xs);
}

.programs-subtitle {
    text-align: center;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Program Card */
.program-card {
    background: var(--dark-blue);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-medium);
}

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

.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--dark-blue) 0%, transparent 100%);
}

.program-content {
    padding: var(--space-md);
}

.program-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.badge-chill {
    background: rgba(0, 168, 232, 0.2);
    color: var(--cyan);
}

.badge-80s {
    background: rgba(255, 209, 0, 0.2);
    color: var(--gold);
}

.badge-electro {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.program-card .program-time {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.program-desc {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Hits Info */
.hits-info {
    display: flex;
    align-items: stretch;
    margin-top: var(--space-xl);
    background: rgba(255, 107, 0, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 0, 0.2);
    overflow: hidden;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hits-info-image {
    flex: 0 0 200px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hits-info-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(255, 107, 0, 0.1));
}

.hits-info-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: var(--space-lg);
}

.hits-info p {
    color: var(--gray-200);
    font-size: 1.1rem;
    line-height: 1.5;
}

.hits-info strong {
    color: var(--orange);
    display: block;
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-medium);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.feature h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.feature p {
    color: var(--gray-300);
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--dark-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    max-width: 280px;
    margin: 0 auto var(--space-lg);
    filter: brightness(0) invert(1);
}

.footer-links {
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-links .separator {
    margin: 0 var(--space-sm);
    color: var(--gray-600);
}

.copyright {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-card:last-child {
        grid-column: span 2;
    }

    .program-card:last-child .program-image {
        height: 250px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
    }

    /* Player Bar Mobile */
    .player-bar-content {
        flex-wrap: wrap;
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }

    .player-bar-left {
        order: 1;
        flex: 0 0 auto;
    }

    .player-bar-center {
        order: 3;
        flex: 1 0 100%;
        justify-content: center;
        margin-top: var(--space-xs);
    }

    .player-bar-right {
        order: 2;
        flex: 0 0 auto;
    }

    .current-program {
        display: none;
    }

    .volume-control {
        display: none;
    }

    .btn-play {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 60vh;
        max-height: 70vh;
    }

    .hero-video {
        object-fit: cover;
        object-position: center center;
    }

    .hero-video {
        object-fit: contain;
        background-color: var(--dark-blue);
    }

    .scroll-indicator {
        display: none;
    }

    .now-playing h2,
    .programs h2 {
        font-size: 1.6rem;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card:last-child {
        grid-column: span 1;
    }

    .program-image {
        height: 180px;
    }

    .program-card:last-child .program-image {
        height: 180px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .feature {
        padding: var(--space-md);
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .hits-info {
        flex-direction: column;
        text-align: center;
    }

    .hits-info-image {
        flex: none;
        height: 150px;
        min-height: auto;
    }

    .hits-info-image::after {
        width: 100%;
        height: 40px;
        top: auto;
        bottom: 0;
        right: 0;
        background: linear-gradient(to bottom, transparent, rgba(255, 107, 0, 0.1));
    }

    .hits-info-content {
        padding: var(--space-md);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer-links .separator {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - PETIT MOBILE
   ======================================== */

@media (max-width: 480px) {
    .hero-logo {
        width: 90%;
        max-width: 350px;
    }

    .now-playing-card .program-name {
        font-size: 1.4rem;
    }

    .program-card h3 {
        font-size: 1.2rem;
    }
}

/* ========================================
   ANIMATIONS & EFFETS
   ======================================== */

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Préférence mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
