/* ===========================================
   DROIT AU BUT - CSS avec Bleu Phocéen OM
   Version 3.6 - Couleurs authentiques OM
   =========================================== */

/* Variables CSS pour couleurs OM authentiques */
:root {
    --bleu-phoceen: #00a8e6;      /* Bleu OM authentique */
    --bleu-phoceen-hover: #0091cc; /* Bleu OM hover */
    --argent-clair: #f5f5f5;      /* Argent clair */
    --argent-fonce: #e0e0e0;      /* Argent foncé */
    --blanc: #ffffff;
    --noir: #333333;
    --gris-texte: #666666;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #000000 !important;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000 !important;
    color: var(--noir);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header avec bleu phocéen */
.header {
    background: linear-gradient(135deg, var(--bleu-phoceen) 0%, var(--bleu-phoceen-hover) 100%);
    color: var(--blanc);
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 168, 230, 0.3);
    border-bottom: 3px solid var(--argent-fonce);
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease-out;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeIn 1.2s ease-out 0.5s both;
}

/* Sections communes */
.section {
    background: var(--blanc);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 168, 230, 0.1);
    border: 2px solid var(--argent-fonce);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.8s ease-out;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 168, 230, 0.2);
    border-color: var(--bleu-phoceen);
}

/* Titres de sections avec bleu phocéen */
.section h2 {
    color: var(--bleu-phoceen);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--bleu-phoceen);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section h2::before,
.section h2::after {
    content: "⚽";
    color: var(--bleu-phoceen);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* Section News prioritaire */
.news-section {
    order: -3;
    background: linear-gradient(135deg, var(--blanc) 0%, var(--argent-clair) 100%);
    border: 3px solid var(--bleu-phoceen);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.news-item {
    background: var(--blanc);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--bleu-phoceen);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 230, 0.1);
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 168, 230, 0.2);
    border-left-width: 6px;
}

.news-item h3 {
    color: var(--bleu-phoceen);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-item a {
    color: var(--bleu-phoceen);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: var(--bleu-phoceen-hover);
    text-decoration: underline;
}

/* Section Vidéos YouTube */
.videos-section {
    order: -2;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.video-item {
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 168, 230, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.video-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 168, 230, 0.25);
    border-color: var(--bleu-phoceen);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-info {
    padding: 1.2rem;
}

.video-title {
    color: var(--noir);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: var(--bleu-phoceen);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.video-date {
    color: var(--gris-texte);
    font-size: 0.85rem;
}

/* Badges d'âge avec bleu phocéen */
.age-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blanc);
    text-transform: uppercase;
}

.age-badge.new {
    background: #4caf50;
    animation: pulse 2s infinite;
}

.age-badge.recent {
    background: #ff9800;
}

.age-badge.old {
    background: #f44336;
}

.age-badge.very-old {
    background: var(--gris-texte);
}

/* Bandeau NOUVEAU avec bleu phocéen */
.nouveau-bandeau {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bleu-phoceen);
    color: var(--blanc);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom-right-radius: 8px;
    animation: slideInLeft 0.5s ease-out;
}

/* Section Podcasts compacte */
.podcasts-section {
    order: -1;
}

.compact-podcast-container {
    background: linear-gradient(135deg, var(--argent-clair) 0%, var(--blanc) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--bleu-phoceen);
    margin-top: 1rem;
}

.compact-podcast-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compact-podcast-item {
    background: var(--blanc);
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid var(--bleu-phoceen);
    box-shadow: 0 4px 15px rgba(0, 168, 230, 0.1);
    transition: all 0.3s ease;
}

.compact-podcast-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 168, 230, 0.2);
}

.compact-podcast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.compact-podcast-title {
    color: var(--bleu-phoceen);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.compact-age-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blanc);
}

.compact-age-badge.new {
    background: #4caf50;
}

.compact-age-badge.recent {
    background: #ff9800;
}

.compact-age-badge.old {
    background: #f44336;
}

.compact-age-badge.very-old {
    background: var(--gris-texte);
}

/* Lecteur audio compact avec bleu phocéen */
.compact-audio-player {
    background: linear-gradient(135deg, var(--bleu-phoceen) 0%, var(--bleu-phoceen-hover) 100%);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--blanc);
}

.compact-player-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.compact-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--blanc);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.compact-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.compact-control-btn:active {
    transform: scale(0.95);
}

.compact-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compact-time {
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 40px;
}

.compact-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.compact-progress-fill {
    height: 100%;
    background: var(--blanc);
    border-radius: 3px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.compact-podcast-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.9;
}

.compact-episode-title {
    flex: 1;
    font-weight: 500;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contrôles de mode avec bleu phocéen */
.compact-mode-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.compact-mode-btn {
    background: rgba(0, 168, 230, 0.1);
    border: 2px solid var(--bleu-phoceen);
    color: var(--bleu-phoceen);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compact-mode-btn.active {
    background: var(--bleu-phoceen);
    color: var(--blanc);
}

.compact-mode-btn:hover {
    background: var(--bleu-phoceen);
    color: var(--blanc);
    transform: translateY(-2px);
}

/* Logo OM parfait */
.om-logo {
    width: 40px;
    height: 40px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--bleu-phoceen);
    padding: 2px;
    background: var(--blanc);
    transition: all 0.3s ease;
}

.om-logo:hover {
    transform: rotate(360deg) scale(1.1);
    border-color: var(--bleu-phoceen-hover);
    box-shadow: 0 0 20px rgba(0, 168, 230, 0.4);
}

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

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem 0.5rem;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .compact-player-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .compact-time {
        min-width: 35px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .compact-podcast-container {
        padding: 1rem;
    }
    
    .compact-mode-controls {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ==============================================
   SIGNATURE NOVATAK
   ============================================== */
.novatak-signature {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.9;
}

.novatak-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.novatak-logo:hover {
    opacity: 1;
}

.novatak-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0;
    font-weight: 300;
}

.novatak-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .novatak-logo {
        max-width: 300px;
    }
    
    .novatak-text {
        font-size: 0.8rem;
    }
    
    .novatak-signature {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .novatak-logo {
        max-width: 240px;
    }
}

/* ==============================================
   FOOTER NOIR
   ============================================== */
.footer {
    background: #000000 !important;
    color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 2rem;
}

.footer p {
    color: #ffffff;
    margin: 0.5rem 0;
}


/* FORCE TOUT EN NOIR */
html, body, .footer {
    background: #000000 !important;
    background-color: #000000 !important;
}

* {
    background-color: transparent !important;
}

.footer, .footer * {
    background: #000000 !important;
    color: #ffffff !important;
}
