/* public/css/radio-paix.css */

/* === VARIABLES CSS === */
:root {
    --color-primary: #1e40af;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-secondary: #dc2626;
    --color-bg: #f9fafb;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-bg);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* === HEADER === */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Barre supérieure */
.header-top {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 0.5rem 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.header-top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-top-nav a {
    transition: var(--transition);
}

.header-top-nav a:hover {
    color: #93c5fd;
}

/* Navigation principale */
.header-main {
    padding: 1rem 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--color-white);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--color-gray-600);
    pointer-events: none;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    width: 250px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--color-gray-700);
    transition: var(--transition);
}

/* Player radio */
.radio-player {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    border-top: 1px solid #bfdbfe;
    padding: 0.75rem 0;
}

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

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-button {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.play-button:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.play-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

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

.emission-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-gray-900);
}

.emission-name {
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

/* Menu mobile */
.mobile-menu {
    display: none;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    padding: 1rem 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    padding: 0.75rem 1rem;
    color: var(--color-gray-700);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--color-gray-50);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

/* === MAIN CONTENT === */
.main-content {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

/* === FOOTER === */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-gray-600);
}

.footer-heading {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* === RESPONSIVE === */

/* Tablettes */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-input {
        width: 200px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .header-top-nav {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .player-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .volume-control {
        width: 100%;
    }
    
    .volume-slider {
        flex: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .logo-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .play-button {
        width: 2rem;
        height: 2rem;
    }
    
    .play-button svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Animation pour le toggle menu mobile */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Pulse animation pour live indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.live-indicator svg {
    animation: pulse 2s ease-in-out infinite;
}

/* Ajoutez ces styles à la fin de radio-paix.css */

/* === PAGE LOADER === */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    animation: fadeInScale 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1.5rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #1e40af;
    border-right-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: #60a5fa;
    border-right-color: #93c5fd;
    animation: spin 1.8s linear infinite reverse;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-ring:nth-child(3) {
    border-top-color: #bfdbfe;
    animation: spin 2.5s linear infinite;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-text {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === PLAY BUTTON ENHANCEMENTS === */
.play-button {
    transition: all 0.3s ease;
    position: relative;
}

.play-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.play-button:not(:disabled):hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.play-button:not(:disabled):active {
    transform: scale(0.95);
}

/* Icône de chargement animée */
.loading-icon {
    display: none;
    animation: spinLoader 1s linear infinite;
    stroke-linecap: round;
}

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

/* === STATES DU PLAYER === */
.radio-player.loading {
    opacity: 0.8;
}

.play-button.is-loading {
    pointer-events: none;
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    word-wrap: break-word;
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #dc2626;
    color: white;
}

.notification-info {
    background: #2563eb;
    color: white;
}

.notification-warning {
    background: #f59e0b;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* === RESPONSIVE LOADER === */
@media (max-width: 768px) {
    .page-loader {
        background: rgba(255, 255, 255, 0.99);
    }

    .loader-spinner {
        width: 50px;
        height: 50px;
    }

    .loader-text {
        font-size: 0.75rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 80px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .loader-spinner {
        width: 40px;
        height: 40px;
    }

    .loader-text {
        font-size: 0.7rem;
    }

    .notification {
        top: 70px;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* === ANIMATIONS SUPPLÉMENTAIRES === */

/* Pulse effect pour éléments en attente */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0);
    }
}

.play-button.is-loading {
    animation: pulseGlow 2s infinite;
}

/* Shimmer effect pour chargement de contenu */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .notification,
    .spinner-ring,
    .play-button,
    .loading-icon {
        animation: none !important;
        transition: none !important;
    }

    .page-loader {
        opacity: 1;
    }
}

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

.footer-logo {
    max-width: 120px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.footer-tagline {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-mission {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.contact-item svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    stroke: #60a5fa;
}

.contact-item a {
    color: var(--color-gray-600);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-white);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.newsletter-title {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.newsletter-text {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: 1rem;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: var(--color-white);
    font-size: 0.875rem;
    transition: var(--transition);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.newsletter-input-group input::placeholder {
    color: var(--color-gray-600);
}

.newsletter-button {
    padding: 0.75rem;
    background: #60a5fa;
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: 46px;
}

.newsletter-button:hover {
    background: #3b82f6;
    transform: scale(1.05);
}

.newsletter-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    transition: var(--transition);
}

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

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-col-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col-about {
        grid-column: auto;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .social-link {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .social-link span {
        font-size: 0.75rem;
    }
    
    .footer-logo {
        max-width: 100px;
    }
    
    .contact-item {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-section {
        padding: 1rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
        padding: 0.875rem;
    }
    
    .footer-logo {
        max-width: 80px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-heading {
        font-size: 0.9375rem;
    }
}

/* Animation pour le formulaire newsletter */
.newsletter-form.success input {
    border-color: #10b981;
}

.newsletter-form.error input {
    border-color: #dc2626;
}

/* Tooltip pour les réseaux sociaux */
.social-link {
    position: relative;
}

.social-link::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    pointer-events: none;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .social-link,
    .newsletter-button,
    .contact-item a {
        transition: none !important;
    }
}