/* Variables */
:root {
    --dark-bg: #0a1628;
    --card-bg: rgba(20, 35, 60, 0.95);
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #0080ff 50%, #003d7a 100%);
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --accent-cyan: #00d4ff;
    --accent-blue: #0080ff;
    --accent-dark-blue: #1e3a8a;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    background-image: url('images/fond.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header & Navigation */
header {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-style: italic;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-cyan);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
    padding: 2rem;
    padding-bottom: 160px;
    max-width: 1200px;
    margin: 0 auto;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00ff99;
}
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.card p {
    color: #ffffff;
}

/* Player Fixed */
.player-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(10px);
    border-top: 2px solid transparent;
    border-image: var(--primary-gradient) 1;
    padding: 1rem 2rem;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.2);
}

.player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5);
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    color: var(--text-gray);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    padding: 0 1rem;
}

.bar {
    width: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: pulse 0.8s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { height: 10px; }
    50% { height: 40px; }
}

/* Volume Control */
.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-control input[type="range"] {
    width: 100px;
    accent-color: var(--accent-cyan);
}

/* History List */
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.history-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-cyan);
}

.history-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-time {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* Chroniques Grid */
.chroniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chronique-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chronique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.chronique-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.chronique-info {
    padding: 1.5rem;
}

.chronique-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.chronique-info p {
    margin: 0.5rem 0;
    color: var(--text-gray);
}

.chronique-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.chronique-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-blue);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(20, 35, 60, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    display: block;
}

.form-message.error {
    background: rgba(255, 0, 100, 0.2);
    color: #ff6b9d;
    border: 1px solid #ff6b9d;
    display: block;
}

/* Diffuseurs */
.diffuseurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.diffuseur-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.diffuseur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    border-color: var(--accent-cyan);
}

.diffuseur-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.diffuseur-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.diffuseur-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.diffuseur-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #ffffff;
}

/* Loading Animation */
.loading {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    header .container-fluid {
        padding: 1rem;
    }

    .logo-text {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: right 0.3s ease;
        z-index: 99999;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        right: 0;
    }

    nav a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    nav a:hover, nav a.active {
        transform: translateX(5px);
    }

    /* Player mobile */
    .player-fixed {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0.75rem 1rem;
    }

    .player-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .player-controls {
        display: none !important;
    }
    
    /* Masquer la pochette dans le player mobile */
    .player-fixed .album-art {
        display: none !important;
    }

    main {
        padding: 1rem;
        padding-bottom: 160px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .history-list {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* Days Tabs */
.days-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.day-tab {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.day-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.day-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* Schedule */
.schedule-container {
    display: none;
}

.schedule-container.active {
    display: block;
}

.schedule-grid {
    display: grid;
    gap: 1.5rem;
}

.schedule-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    display: grid;
    grid-template-columns: 80px 80px 1fr;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.schedule-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--dark-bg);
    border: 2px solid var(--accent-cyan);
}

.schedule-time {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f0;
    text-align: center;
}

.schedule-show h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.schedule-show p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.schedule-show .animateur {
    color: #f0f0f0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive Schedule */
@media (max-width: 768px) {
    .schedule-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .schedule-logo {
        margin: 0 auto;
    }
    
    .days-tabs {
        gap: 0.5rem;
    }
    
    .day-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
