/*
Theme Name: HD FM Radio
Description: Thème WordPress pour HD FM - Radio Humanitaire et Développement du Mali
Author: HD FM Team
Version: 1.0
Text Domain: hd-fm
*/

/* Variables CSS */
:root {
  --primary-blue: #2B4C8C;
  --primary-green: #36A853;
  --accent-red: #dc2626;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-main {
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.site-logo img {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-tagline {
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

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

.live-button {
  background: var(--accent-red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.live-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.language-selector select {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: var(--white);
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

/* Navigation */
.main-navigation {
  background: var(--primary-blue);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  background: var(--primary-green);
}

.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  color: var(--text-dark);
  border-bottom: 1px solid #e5e7eb;
}

.nav-menu .sub-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(43, 76, 140, 0.1);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(43, 76, 140, 0.8), rgba(54, 168, 83, 0.8)), url('./assets/images/IMG_2413.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--primary-blue);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Featured Content */
.featured-content {
  padding: 4rem 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.content-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--primary-blue);
}

/* Audio Player */
.audio-player {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
}

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

.play-button {
  width: 60px;
  height: 60px;
  background: var(--primary-green);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.player-info {
  flex: 1;
}

.now-playing {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.program-title {
  color: var(--text-light);
}

/* Newsletter */
.newsletter-section {
  padding: 3rem 0;
  background: var(--primary-blue);
  color: var(--white);
}

.newsletter-card {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-card p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form button {
  background: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #2d8f47;
}

/* Footer */
.site-footer {
  background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.8)), url('./assets/images/IMG_2364.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Accessibility */
.accessibility-controls {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  padding: 1rem;
  z-index: 1001;
}

.accessibility-controls button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #d1d5db;
  background: var(--white);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accessibility-controls button:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Program Lists */
.program-list,
.news-list,
.podcast-list,
.story-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.program-list li,
.news-list li,
.podcast-list li,
.story-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.program-list li:last-child,
.news-list li:last-child,
.podcast-list li:last-child,
.story-list li:last-child {
  border-bottom: none;
}

.live-badge {
  background: var(--accent-red);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.podcast-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.podcast-meta span {
  margin-right: 1rem;
}

/* Language badges */
.language-badge {
  background: var(--primary-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.language-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Container mobile optimisé */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Header mobile amélioré */
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    flex-wrap: nowrap;
  }
  
  .site-logo {
    flex-shrink: 0;
  }
  
  .site-logo img {
    height: 45px;
  }
  
  .site-tagline {
    display: none;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .live-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 20px;
  }
  
  .language-selector select {
    padding: 0.4rem;
    font-size: 0.875rem;
  }
  
  .social-links {
    display: none;
  }
  
  /* Navigation mobile */
  .main-navigation {
    position: relative;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 15px 15px;
    z-index: 1000;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
  }
  
  .nav-menu a:hover {
    background-color: var(--primary-green);
  }
  
  .mobile-menu-toggle {
    display: block;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--primary-green);
  }
  
  /* Hero section mobile */
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .hero-cta {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Audio player mobile */
  .audio-player {
    margin: 1rem 0;
    padding: 1.5rem;
  }
  
  .player-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .play-button {
    align-self: center;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .player-info {
    text-align: center;
  }
  
  .volume-control {
    width: 100%;
  }
  
  #volume-slider {
    width: 100%;
  }
  
  /* Featured content mobile */
  .featured-content {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .content-card {
    padding: 1.5rem;
    margin-bottom: 0;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  
  .card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  /* Newsletter mobile */
  .newsletter-section {
    padding: 2rem 0;
  }
  
  .newsletter-card {
    padding: 0 1rem;
  }
  
  .newsletter-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    gap: 0.75rem;
  }
  
  .newsletter-form input {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  .newsletter-form button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Footer mobile */
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .footer-section {
    padding: 0 1rem;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .footer-section ul li {
    margin-bottom: 0.75rem;
  }
  
  .footer-section a {
    font-size: 0.95rem;
  }
  
  .partners-section {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .partner-logo {
    min-height: 60px;
    font-size: 0.875rem;
  }
  
  .footer-bottom {
    padding-top: 1rem;
    text-align: center;
  }
  
  .footer-bottom > div {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .language-footer {
    text-align: center;
  }
  
  /* Accessibility controls mobile */
  .accessibility-controls {
    position: fixed;
    bottom: 20px;
    right: 15px;
    transform: none;
    padding: 0.75rem;
  }
  
  .accessibility-controls button {
    padding: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
  }
  
  /* Program lists mobile */
  .program-list,
  .news-list,
  .podcast-list,
  .story-list {
    font-size: 0.9rem;
  }
  
  .program-list li,
  .news-list li,
  .podcast-list li,
  .story-list li {
    padding: 0.75rem 0;
  }
  
  .live-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    margin-left: 0.4rem;
  }
  
  .podcast-meta {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }
  
  .podcast-meta span {
    margin-right: 0.75rem;
    display: inline-block;
    margin-bottom: 0.25rem;
  }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .content-card {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablettes portrait */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Améliorations tactiles */
@media (hover: none) and (pointer: coarse) {
  .content-card:hover {
    transform: none;
  }
  
  .live-button:hover {
    transform: none;
  }
  
  .social-links a:hover {
    transform: none;
  }
  
  .card-link:hover {
    color: var(--primary-green);
  }
  
  /* Augmenter les zones tactiles */
  .nav-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
  }
  
  .accessibility-controls button {
    min-width: 44px;
    min-height: 44px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* High Contrast Mode */
.high-contrast {
  filter: contrast(150%) brightness(120%);
}

.high-contrast .content-card {
  border: 2px solid var(--text-dark);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .main-navigation,
  .accessibility-controls,
  .audio-player {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}