/* ==========================================================================
   PolyParkours - Main Stylesheet
   ========================================================================== */

/* Import Modules */
@import url("modules/variables.css");
@import url("modules/base.css");
@import url("modules/layout.css");
@import url("modules/components.css");
@import url("modules/pwa-ios.css");

/* ==========================================================================
   Smooth Scroll & Base Animations
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation Delays */
.episode-card:nth-child(1) {
  transition-delay: 0.1s;
}

.episode-card:nth-child(2) {
  transition-delay: 0.2s;
}

.episode-card:nth-child(3) {
  transition-delay: 0.3s;
}

.episode-card:nth-child(4) {
  transition-delay: 0.4s;
}

.episode-card:nth-child(5) {
  transition-delay: 0.5s;
}

.episode-card:nth-child(6) {
  transition-delay: 0.6s;
}

.episode-card:nth-child(7) {
  transition-delay: 0.7s;
}

.episode-card:nth-child(8) {
  transition-delay: 0.8s;
}

.episode-card:nth-child(9) {
  transition-delay: 0.9s;
}

/* ==========================================================================
   Header rustique et basique - sans logo
   ========================================================================== */

/* ==========================================================================
   Header & Navigation Mobile-First avec support PWA iOS
   ========================================================================== */
.header {
  backdrop-filter: blur(10px);

  /* Support PWA iOS */
  backdrop-filter: blur(10px);
  background: linear-gradient(45deg, #190101 0%, #a80506 100%);
  border-bottom: 1px solid rgb(168 5 6 / 20%);
  left: 0;
  padding-left: var(--safe-area-inset-left);
  padding-right: var(--safe-area-inset-right);

  /* Support des safe areas iOS */
  padding-top: var(--safe-area-inset-top);
  position: fixed;
  right: 0;
  top: 0;
  transition: var(--transition-normal);
  will-change: transform;
  z-index: var(--z-fixed);
}

/* Détection de la Dynamic Island pour iPhone 14 Pro/Pro Max */
@supports (height: env(safe-area-inset-top)) {
  @media only screen and (device-width <= 393px) and (device-height <= 852px) and (device-pixel-ratio: 3),
    only screen and (device-width <= 430px) and (device-height <= 932px) and (-webkit-device-pixel-ratio: 3) {
    .header {
      padding-top: calc(var(--safe-area-inset-top) + 10px);
    }
  }
}

.nav-container {
  align-items: center;
  display: flex;
  height: var(--header-base-height);
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 60px; /* Hauteur minimale pour petits écrans */
  padding: 0 1rem;
  position: relative;
}

/* Logo Navigation */
.nav-logo {
  align-items: center;
  color: var(--text-on-gradient);
  display: flex;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 0.75rem;
  z-index: 1001;
}

.nav-logo img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
}

.nav-logo-text {
  display: none;
}

/* Navigation Menu */
.nav-menu {
  align-items: center;
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  border-radius: var(--radius-md);
  color: var(--text-on-gradient);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  text-decoration: none;
  transition: var(--transition-normal);
}

.nav-link:hover {
  background: rgb(255 255 255 / 10%);
  transform: translateY(-2px);
}

.nav-link::after {
  background: rgb(255 255 255 / 80%);
  bottom: -2px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  width: 0;
}

.nav-link:hover::after {
  width: 80%;
}

/* Controls Container */
.nav-controls {
  align-items: center;
  display: flex;
  gap: 1rem;
  z-index: 1001;
}

/* Theme Toggle Enhanced */
.theme-toggle {
  align-items: center;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  color: var(--text-on-gradient);
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  height: 45px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
  width: 45px;
}

.theme-toggle:hover {
  background: rgb(255 255 255 / 20%);
  transform: scale(1.1);
}

.theme-toggle i {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-toggle .fa-moon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .fa-sun {
  opacity: 0;
  transform: rotate(180deg);
}

body.dark-theme .theme-toggle .fa-moon {
  opacity: 0;
  transform: rotate(-180deg);
}

body.dark-theme .theme-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  align-items: center;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 45px;
  justify-content: center;
  transition: var(--transition-normal);
  width: 45px;
  /* Optimisations tactiles simplifiées */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.mobile-menu-toggle:hover {
  background: rgb(255 255 255 / 20%);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-line {
  background: var(--text-on-gradient);
  border-radius: 1px;
  height: 2px;
  transition: all 0.3s ease;
  width: 20px;
}

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

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

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

/* ==========================================================================
   Responsive Design - Mobile First
   ========================================================================== */

/* Desktop Styles (default) */
@media (width >= 769px) {
  .nav-logo-text {
    display: inline;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Tablet & Mobile */
@media (width <= 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo-text {
    display: inline;
    font-size: 1rem;
  }

  .nav-menu {
    backdrop-filter: blur(10px);
    background: linear-gradient(45deg, #190101 0%, #a80506 100%);
    box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
    flex-direction: column;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: calc(2rem + var(--safe-area-inset-top, 0)) 1rem 2rem;
    padding-left: calc(1rem + var(--safe-area-inset-left, 0));
    padding-right: calc(1rem + var(--safe-area-inset-right, 0));
    position: fixed;
    right: 0;
    top: var(--header-base-height, 80px);
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    z-index: 1000;
    /* Support PWA et safe areas */
    min-height: calc(100vh - var(--header-base-height, 80px));
  }

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

  .nav-menu li {
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    text-align: center;
    width: 100%;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    border-radius: 0;
    display: block;
    font-size: 1.1rem;
    padding: 1rem 0;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgb(255 255 255 / 10%);
    transform: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .theme-toggle {
    font-size: 0.9rem;
    height: 40px;
    width: 40px;
  }

  /* Mobile Grid Improvements */
  .episodes-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .episode-card {
    min-height: auto;
    padding: 1.25rem;
  }

  .episode-image {
    height: 180px;
    margin-bottom: 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .team-avatar {
    font-size: 2.5rem;
    height: 120px;
    width: 120px;
  }

  .team-card {
    padding: 1.5rem;
  }
}

/* Small Mobile */
@media (width <= 480px) {
  .nav-container {
    height: 65px;
    padding: 0 0.75rem;
  }

  .nav-logo img {
    height: 35px;
    width: 35px;
  }

  .nav-logo-text {
    font-size: 0.9rem;
  }

  .nav-menu {
    padding: 1.5rem 0.75rem;
    top: var(--header-base-height, 80px);
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.875rem 0;
  }

  .theme-toggle {
    font-size: 0.85rem;
    height: 38px;
    width: 38px;
  }

  .mobile-menu-toggle {
    height: 38px;
    width: 38px;
  }

  .hamburger-line {
    width: 18px;
  }

  .episodes-grid {
    gap: 1rem;
  }

  .episode-card {
    padding: 1rem;
  }

  .episode-image {
    height: 160px;
  }

  .team-avatar {
    font-size: 2rem;
    height: 100px;
    width: 100px;
  }

  .team-card {
    padding: 1.25rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Hero Section avec gradient correct
   ========================================================================== */
.hero {
  align-items: center;
  background: linear-gradient(45deg, #190101 0%, #a80506 85%);
  color: var(--text-on-gradient);
  display: flex;
  justify-content: center;
  min-height: 100vh;

  /* Support pour iOS PWA - hauteur d'écran sans les barres du navigateur */
  min-height: fill-available;
  overflow: hidden;
  padding: calc(var(--header-base-height) + 20px) 1rem 20px 1rem;

  /* Padding standard pour mode browser */
  position: relative;
  text-shadow: 0 2px 4px rgb(0 0 0 / 50%);
}

.hero::before {
  background: radial-gradient(
    circle at 30% 70%,
    rgb(168 5 6 / 20%) 0%,
    transparent 50%
  );
  inset: 0;
  content: "";
  position: absolute;
  z-index: 1;
}

.hero-content {
  animation: heroFadeIn 1s ease-out;
  margin: 0 auto;
  max-width: 800px;
  padding: 2rem;
  position: relative;
  text-align: center;
  z-index: 2;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: titleSlideIn 1s ease-out 0.3s both;
  color: var(--white);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgb(0 0 0 / 30%);
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  animation: subtitleSlideIn 1s ease-out 0.6s both;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

@keyframes subtitleSlideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CTA Button avec nouveau gradient */
.cta-button {
  animation: ctaFadeIn 1s ease-out 0.9s both;
  background: var(--gradient-button-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px var(--shadow-gradient);
  color: var(--text-on-gradient);
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  text-decoration: none;
  transition: var(--transition-normal);
}

@keyframes ctaFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button:hover {
  background: var(--gradient-button-hover);
  box-shadow: 0 8px 25px rgb(168 5 6 / 40%);
  transform: translateY(-3px) scale(1.05);
}

/* Hero Section - Ajustements PWA */
@media (display-mode: standalone) {
  .hero {
    padding-top: var(--header-base-height, 80px);
    margin-top: 0;
    min-height: calc(100vh - var(--header-base-height, 80px));
    padding-bottom: 20px;
  }
}

/* ==========================================================================
   Episode Cards avec nouveaux gradients
   ========================================================================== */
.episodes-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 2rem 0;
}

.episode-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.episode-card::before {
  background: var(--gradient-border);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}

.episode-card:hover::before {
  transform: scaleX(1);
}

.episode-card:hover {
  box-shadow: 0 20px 40px rgb(25 1 1 / 20%);
  transform: translateY(-10px) scale(1.02);
}

.episode-image {
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  height: 200px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.episode-image::after {
  align-items: center;
  background: rgb(0 0 0 / 70%);
  border-radius: 50%;
  color: white;
  content: "▶";
  display: flex;
  font-size: 20px;
  height: 60px;
  justify-content: center;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  width: 60px;
  z-index: 2;
}

.episode-image:hover::after {
  opacity: 1;
}

.episode-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

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

/* Contenu de la carte organisé */
.episode-card .episode-image {
  margin-bottom: 1rem;
}

.episode-card .episode-title {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.episode-card .episode-description {
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

.episode-card .episode-guest {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

.episode-card .episode-duration {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.episode-card .episode-player {
  flex-shrink: 0;
  margin-top: auto;
}

.episode-link {
  background: var(--gradient-button);
  border-radius: var(--radius-xl);
  color: var(--text-on-gradient);
  display: inline-block;
  font-weight: 600;
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-normal);
}

.episode-link:hover {
  background: var(--gradient-button-hover);
  box-shadow: 0 8px 20px var(--shadow-gradient);
  transform: translateY(-2px);
}

/* Boutons de lecture simples */
.episode-player-simple {
  margin-top: auto;
  padding-top: 1rem;
}

.episode-play-btn {
  align-items: center;
  background: linear-gradient(135deg, #a80506 0%, #dc2626 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgb(168 5 6 / 30%);
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  width: 100%;
}

.episode-play-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 8px 25px rgb(168 5 6 / 40%);
  transform: translateY(-2px);
}

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

.episode-play-btn i {
  font-size: 1.1rem;
}

.episode-play-btn.playing {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.episode-play-btn.playing:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* ==========================================================================
   Team Cards avec nouveaux accents
   ========================================================================== */
.team-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
  overflow: hidden;
  padding: 2rem;
  position: relative;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card::before {
  background: var(--gradient-card-hover);
  inset: 0;
  content: "";
  opacity: 0;
  position: absolute;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.team-card:hover::before {
  opacity: 0.03;
}

.team-card:hover {
  box-shadow: 0 15px 35px rgb(25 1 1 / 25%);
  transform: translateY(-8px) rotateY(5deg);
}

.team-avatar {
  align-items: center;
  background: var(--gradient-main) padding-box, var(--gradient-main) border-box;
  border: 4px solid transparent;
  border-radius: 50%;
  color: var(--white-pure);
  display: flex;
  font-size: 3rem;
  font-weight: 700;
  height: 150px;
  justify-content: center;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
  transition: var(--transition-normal);
  width: 150px;
}

.team-avatar:hover {
  transform: scale(1.05);
}

.team-avatar img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* ==========================================================================
   Section Titles avec nouveaux accents
   ========================================================================== */
.section-title {
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 3rem;
  position: relative;
  text-align: center;
}

.section-title::after {
  background: var(--gradient-border);
  border-radius: var(--radius-sm);
  bottom: -10px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 60px;
}

/* ==========================================================================
   Responsive Design Enhancements
   ========================================================================== */

/* Mobile Navigation */
@media (width <= 768px) {
  .nav-menu {
    background: var(--gradient-hero-main);
    box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
    flex-direction: column;
    left: 0;
    opacity: 0;
    padding: 2rem;
    position: fixed;
    right: 0;
    top: 70px;
    transform: translateY(-100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
  }

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

  .nav-link {
    border-bottom: 1px solid rgb(168 5 6 / 20%);
    font-size: 1.1rem;
    padding: 1rem 0;
  }

  .episodes-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 1rem;
  }
}

/* Tablet Responsive */
@media (width <= 1024px) and (width >= 769px) {
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop */
@media (width >= 1400px) {
  .episodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Mode Sombre - Version simplifiée
   ========================================================================== */
body.dark-theme {
  background-color: #111 !important;
  color: #fff !important;
}

body.dark-theme .header {
  background: linear-gradient(45deg, #0a0000 0%, #4a0202 100%) !important;
}

body.dark-theme .hero {
  background: linear-gradient(45deg, #0a0000 0%, #4a0202 85%) !important;
}

body.dark-theme .about {
  background: #111 !important;
}

body.dark-theme .episodes {
  background: #1e1e1e !important;
}

body.dark-theme .team {
  background: #111 !important;
}

body.dark-theme .footer {
  background: #2a2a2a !important;
  color: #fff !important;
}

body.dark-theme .episode-card,
body.dark-theme .team-card,
body.dark-theme .feature-card {
  background: #1e1e1e !important;
  border-color: #333 !important;
  color: #fff !important;
}

body.dark-theme .team-avatar {
  color: #fff !important;
  text-shadow: 0 2px 4px rgb(255 255 255 / 10%) !important;
}

body.dark-theme .section-title,
body.dark-theme .episode-title,
body.dark-theme .team-name,
body.dark-theme .feature-card h3 {
  color: #fff !important;
}

body.dark-theme .about-text,
body.dark-theme .episode-description,
body.dark-theme .episode-guest,
body.dark-theme .episode-duration,
body.dark-theme .team-role,
body.dark-theme .team-description,
body.dark-theme .feature-card p {
  color: #ccc !important;
}

/* ==========================================================================
   Scroll Progress Bar avec nouveau gradient
   ========================================================================== */
.scroll-progress {
  background: var(--gradient-progress);
  height: 3px;
  left: 0;
  position: fixed;
  top: 0;
  transition: width 0.1s ease;
  z-index: calc(var(--z-fixed) + 1);
}

/* ==========================================================================
   Loading States & Micro-interactions
   ========================================================================== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* ==========================================================================
   Feature Cards avec nouveaux accents
   ========================================================================== */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-xl);
  position: relative;
  text-align: center;
  transition: var(--transition-normal);
}

.feature-card::before {
  background: var(--gradient-border);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-out);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  box-shadow: 0 10px 25px rgb(25 1 1 / 15%);
  transform: translateY(-5px);
}

.feature-icon {
  background: var(--gradient-main);
  background-clip: text;
  background-clip: text;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Base Styles - Mode clair par défaut
   ========================================================================== */
body {
  background-color: var(--white-pure);
  color: var(--text-primary);
  transition: background-color var(--duration-normal),
    color var(--duration-normal);
}

/* Sections de base */
.about {
  background: var(--white-pure);
  padding: 4rem 0;
}

.episodes {
  background: var(--gray-50);
  padding: 4rem 0;
}

.team {
  background: var(--white-pure);
  padding: 4rem 0;
}

.footer {
  background: linear-gradient(45deg, #190101 0%, #a80506 100%);
  color: var(--white-pure);
  margin-top: 4rem;
  overflow: hidden;
  padding: 4rem 0 0;
  position: relative;
}

.footer-gradient {
  background: linear-gradient(90deg, #a80506 0%, #190101 50%, #a80506 100%);
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.footer-main {
  display: grid;
  gap: 3rem;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  margin-bottom: 3rem;
}

/* Section Brand */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}

.footer-logo h3 {
  color: var(--white-pure);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.footer-description {
  color: rgb(255 255 255 / 80%);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Social Links */
.footer-social {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.social-link {
  align-items: center;
  color: rgb(255 255 255 / 90%);
  display: flex;
  height: 40px;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 40px;
}

.social-link:hover {
  color: var(--white-pure);
}

/* Styles pour les icônes Font Awesome */
.social-icon-fa {
  color: rgb(255 255 255 / 90%);
  flex-shrink: 0;
  font-size: 20px;
  text-align: center;
  transition: all 0.3s ease;
  width: 24px;
}

/* Couleurs spécifiques pour chaque plateforme */
.social-link[href*="instagram"] .social-icon-fa {
  color: #e4405f;
}

.social-link[href*="spotify"] .social-icon-fa {
  color: #1db954;
}

.social-link[href*="apple"] .social-icon-fa {
  color: #fff;
  font-size: 22px;
  text-shadow: 0 0 10px rgb(255 255 255 / 30%);
}

.social-link:hover .social-icon-fa {
  transform: scale(1.1);
}

.social-link[href*="apple"]:hover .social-icon-fa {
  color: #fff;
  text-shadow: 0 0 15px rgb(255 255 255 / 50%);
  transform: scale(1.15);
}

.social-text {
  display: none;
}

/* Section Navigation */
.footer-nav-section h4,
.footer-contact h4,
.footer-newsletter h4 {
  color: var(--white-pure);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-nav-section h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
  background: rgb(255 255 255 / 60%);
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 30px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: rgb(255 255 255 / 80%);
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: var(--white-pure);
  transform: translateX(3px);
}

/* Section Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link,
.contact-item {
  align-items: center;
  color: rgb(255 255 255 / 80%);
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a {
  color: rgb(255 255 255 / 80%);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover,
.contact-link:hover {
  color: var(--white-pure);
  transform: translateX(3px);
}

.contact-icon {
  font-size: 1.1rem;
  text-align: center;
  width: 20px;
}

/* Section Newsletter */
.footer-newsletter p {
  color: rgb(255 255 255 / 80%);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  margin-top: 1rem;
}

.newsletter-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  backdrop-filter: blur(10px);
  background: rgb(255 255 255 / 10%);
  border: 2px solid rgb(255 255 255 / 20%);
  border-radius: 8px;
  color: var(--white-pure);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgb(255 255 255 / 60%);
}

.newsletter-input:focus {
  background: rgb(255 255 255 / 15%);
  border-color: rgb(255 255 255 / 50%);
  outline: none;
}

.newsletter-btn {
  backdrop-filter: blur(10px);
  background: rgb(255 255 255 / 20%);
  border: 2px solid rgb(255 255 255 / 30%);
  border-radius: 8px;
  color: var(--white-pure);
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: rgb(255 255 255 / 30%);
  border-color: rgb(255 255 255 / 50%);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding: 2rem 0;
}

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

.copyright {
  color: rgb(255 255 255 / 70%);
  font-size: 0.9rem;
  margin: 0;
}

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

.footer-link {
  color: rgb(255 255 255 / 70%);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--white-pure);
}

/* ==========================================================================
   Footer Responsive
   ========================================================================== */
@media (width <= 1024px) {
  .footer-main {
    gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    max-width: none;
  }
}

@media (width <= 768px) {
  .footer {
    padding: 3rem 0 0;
  }

  .footer-main {
    gap: 2rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    align-items: center;
  }

  .newsletter-input-group {
    margin: 0 auto;
    max-width: 300px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

@media (width <= 480px) {
  .footer {
    padding: 2rem 0 0;
  }

  .footer-main {
    gap: 1.5rem;
  }

  .footer-logo h3 {
    font-size: 1.3rem;
  }

  .social-link {
    justify-content: center;
  }
}

/* ==========================================================================
   Footer Mode Sombre
   ========================================================================== */
body.dark-theme .footer {
  background: linear-gradient(45deg, #0a0000 0%, #4a0202 100%) !important;
}

body.dark-theme .footer-gradient {
  background: linear-gradient(
    90deg,
    #4a0202 0%,
    #0a0000 50%,
    #4a0202 100%
  ) !important;
}

/* ==========================================================================
   Lecteurs Audio Modernes - Design Personnalisé
   ========================================================================== */

/* Conteneur principal du lecteur */
.episode-player {
  backdrop-filter: blur(15px);
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 8%) 0%,
    rgb(255 255 255 / 3%) 100%
  );
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
  box-sizing: border-box;
  margin-top: 1.5rem;
  min-height: 80px;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
}

.episode-player::before {
  background: linear-gradient(90deg, #a80506 0%, #190101 50%, #a80506 100%);
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.6;
  position: absolute;
  right: 0;
  top: 0;
}

.episode-player:hover {
  border-color: rgb(168 5 6 / 30%);
  box-shadow: 0 12px 40px rgb(168 5 6 / 15%);
  transform: translateY(-2px);
}

/* Styles Plyr personnalisés - Mode Clair */
.plyr {
  border-radius: 12px;
  font-family: Inter, sans-serif;
}

.plyr--audio .plyr__controls {
  align-items: center;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 90%) 0%,
    rgb(248 250 252 / 85%) 100%
  );
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgb(0 0 0 / 6%);
  box-sizing: border-box;
  display: flex;
  gap: 1rem;
  min-height: 60px;
  padding: 1.25rem;
  width: 100%;
}

/* Bouton de lecture principal */
.plyr__control--overlaid {
  background: linear-gradient(135deg, #a80506 0%, #dc2626 100%);
  border: 2px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  box-shadow: 0 3px 15px rgb(168 5 6 / 40%);
  color: white;
  flex-shrink: 0;
  height: 56px;
  transition: all 0.3s ease;
  width: 56px;
}

.plyr__control--overlaid:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 6px 25px rgb(168 5 6 / 60%);
  transform: scale(1.05);
}

.plyr__control--overlaid svg {
  height: 24px;
  width: 24px;
}

/* Contrôles généraux */
.plyr__control {
  align-items: center;
  background: rgb(255 255 255 / 80%);
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 8px;
  color: #374151;
  display: flex;
  font-size: 0.9rem;
  font-weight: 500;
  justify-content: center;
  margin: 0 2px;
  min-height: 40px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.plyr__control:hover {
  background: rgb(168 5 6 / 10%);
  border-color: rgb(168 5 6 / 20%);
  color: #a80506;
  transform: translateY(-1px);
}

.plyr__control.plyr__tab-focus {
  box-shadow: 0 0 0 3px rgb(168 5 6 / 30%);
  outline: none;
}

/* Barre de progression améliorée */
.plyr__progress {
  background: rgb(0 0 0 / 10%);
  border-radius: 4px;
  flex: 1;
  height: 8px;
  margin: 0 8px;
  min-width: 100px;
  overflow: hidden;
  position: relative;
}

.plyr__progress__buffer {
  background: rgb(168 5 6 / 20%);
  border-radius: 4px;
  transition: width 0.2s ease;
}

.plyr__progress__played {
  background: linear-gradient(90deg, #a80506 0%, #dc2626 100%);
  border-radius: 4px;
  position: relative;
  transition: width 0.2s ease;
}

.plyr__progress__played::after {
  background: #dc2626;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(168 5 6 / 40%);
  content: "";
  height: 16px;
  opacity: 0;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
  width: 16px;
}

.plyr__progress:hover .plyr__progress__played::after {
  opacity: 1;
}

/* Affichage du temps */
.plyr__time {
  background: rgb(255 255 255 / 80%);
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 6px;
  color: #6b7280;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 50px;
  padding: 6px 10px;
  text-align: center;
}

/* Contrôle du volume */
.plyr__volume {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.plyr__volume__display {
  background: rgb(255 255 255 / 80%);
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 6px;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 35px;
  padding: 6px 8px;
  text-align: center;
}

/* Menu des paramètres (vitesse) */
.plyr__menu {
  backdrop-filter: blur(20px);
  background: rgb(255 255 255 / 95%);
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 15%);
  padding: 8px;
}

.plyr__menu__container {
  border-radius: 8px;
}

.plyr__control[role="menuitemradio"] {
  border-radius: 8px;
  color: #374151;
  margin: 2px 0;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.plyr__control[role="menuitemradio"]:hover,
.plyr__control[role="menuitemradio"][aria-checked="true"] {
  background: linear-gradient(135deg, #a80506 0%, #dc2626 100%);
  color: white;
}

/* Tooltip personnalisé */
.plyr__tooltip {
  backdrop-filter: blur(10px);
  background: rgb(0 0 0 / 90%);
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
}

/* ==========================================================================
   États et Animations des Lecteurs
   ========================================================================== */

/* État de lecture active */
.episode-player.playing {
  border-color: rgb(168 5 6 / 50%);
  box-shadow: 0 12px 40px rgb(168 5 6 / 20%);
  transform: translateY(-3px);
}

.episode-player.playing::before {
  animation: pulse-gradient 2s ease-in-out infinite;
  opacity: 1;
}

@keyframes pulse-gradient {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* État d'erreur */
.episode-player.error {
  background: linear-gradient(
    135deg,
    rgb(239 68 68 / 10%) 0%,
    rgb(220 38 38 / 5%) 100%
  );
  border-color: rgb(239 68 68 / 50%);
}

.player-error-message {
  animation: fadeInError 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgb(239 68 68 / 95%);
  border-radius: 8px;
  color: white;
  left: 50%;
  padding: 1rem 1.5rem;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.player-error-message p {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.player-error-message small {
  font-size: 0.875rem;
  opacity: 0.9;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Animation de chargement */
.episode-player.loading::after {
  animation: loading-sweep 1.5s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(168 5 6 / 80%),
    transparent
  );
  content: "";
  height: 2px;
  left: -100%;
  position: absolute;
  top: 0;
  width: 100%;
}

@keyframes loading-sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Indicateur de lecture en cours */
.plyr--playing .plyr__control--overlaid {
  animation: pulse-play 1.5s ease-in-out infinite;
}

@keyframes pulse-play {
  0%,
  100% {
    box-shadow: 0 4px 20px rgb(168 5 6 / 40%);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 6px 30px rgb(168 5 6 / 60%);
    transform: scale(1.02);
  }
}

/* Animation de la barre de progression */
.plyr__progress__played {
  overflow: hidden;
  position: relative;
}

.plyr__progress__played::before {
  animation: progress-shine 3s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 30%),
    transparent
  );
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  width: 100%;
}

@keyframes progress-shine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Contrôles avec micro-interactions */
.plyr__control {
  overflow: hidden;
  position: relative;
}

.plyr__control::before {
  background: rgb(168 5 6 / 20%);
  border-radius: 50%;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  width: 0;
}

.plyr__control:active::before {
  height: 100%;
  width: 100%;
}

/* Amélioration du bouton de lecture principal */
.plyr__control--overlaid {
  overflow: hidden;
  position: relative;
}

.plyr__control--overlaid::after {
  background: rgb(255 255 255 / 20%);
  border-radius: 50%;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  width: 0;
}

.plyr__control--overlaid:hover::after {
  height: 120%;
  width: 120%;
}

/* Styles pour les contrôles de vitesse étendus */
.plyr__menu__container {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-color: rgb(168 5 6 / 50%) transparent;
  scrollbar-width: thin;
}

.plyr__menu__container::-webkit-scrollbar {
  width: 4px;
}

.plyr__menu__container::-webkit-scrollbar-track {
  background: transparent;
}

.plyr__menu__container::-webkit-scrollbar-thumb {
  background: rgb(168 5 6 / 50%);
  border-radius: 2px;
}

.plyr__menu__container::-webkit-scrollbar-thumb:hover {
  background: rgb(168 5 6 / 70%);
}

/* ==========================================================================
   Mode Sombre - Lecteurs Audio
   ========================================================================== */

/* Conteneur en mode sombre */
body.dark-theme .episode-player {
  background: linear-gradient(
    135deg,
    rgb(0 0 0 / 30%) 0%,
    rgb(0 0 0 / 15%) 100%
  );
  border-color: rgb(255 255 255 / 8%);
  box-shadow: 0 4px 20px rgb(0 0 0 / 20%);
}

body.dark-theme .episode-player::before {
  background: linear-gradient(90deg, #4a0202 0%, #0a0000 50%, #4a0202 100%);
}

body.dark-theme .episode-player:hover {
  border-color: rgb(74 2 2 / 40%);
  box-shadow: 0 12px 40px rgb(74 2 2 / 25%);
}

/* Contrôles en mode sombre */
body.dark-theme .plyr--audio .plyr__controls {
  background: linear-gradient(
    135deg,
    rgb(17 24 39 / 90%) 0%,
    rgb(31 41 55 / 85%) 100%
  );
  border-color: rgb(255 255 255 / 8%);
  box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

body.dark-theme .plyr__control--overlaid {
  background: linear-gradient(135deg, #4a0202 0%, #7c2d12 100%);
  border-color: rgb(255 255 255 / 10%);
  box-shadow: 0 4px 20px rgb(74 2 2 / 60%);
}

body.dark-theme .plyr__control--overlaid:hover {
  background: linear-gradient(135deg, #7c2d12 0%, #a16207 100%);
  box-shadow: 0 6px 25px rgb(74 2 2 / 80%);
}

body.dark-theme .plyr__control {
  background: rgb(31 41 55 / 80%);
  border-color: rgb(255 255 255 / 10%);
  color: #e5e7eb;
}

body.dark-theme .plyr__control:hover {
  background: rgb(74 2 2 / 20%);
  border-color: rgb(74 2 2 / 30%);
  color: #fbbf24;
}

body.dark-theme .plyr__control.plyr__tab-focus {
  box-shadow: 0 0 0 3px rgb(74 2 2 / 50%);
}

/* Barre de progression en mode sombre */
body.dark-theme .plyr__progress {
  background: rgb(255 255 255 / 10%);
}

body.dark-theme .plyr__progress__buffer {
  background: rgb(74 2 2 / 30%);
}

body.dark-theme .plyr__progress__played {
  background: linear-gradient(90deg, #4a0202 0%, #7c2d12 100%);
}

body.dark-theme .plyr__progress__played::after {
  background: #7c2d12;
  box-shadow: 0 2px 8px rgb(74 2 2 / 60%);
}

/* Temps et volume en mode sombre */
body.dark-theme .plyr__time,
body.dark-theme .plyr__volume__display {
  background: rgb(31 41 55 / 80%);
  border-color: rgb(255 255 255 / 10%);
  color: #d1d5db;
}

/* Menu en mode sombre */
body.dark-theme .plyr__menu {
  background: rgb(17 24 39 / 95%);
  border-color: rgb(255 255 255 / 10%);
  box-shadow: 0 8px 32px rgb(0 0 0 / 40%);
}

body.dark-theme .plyr__control[role="menuitemradio"] {
  color: #e5e7eb;
}

body.dark-theme .plyr__control[role="menuitemradio"]:hover,
body.dark-theme .plyr__control[role="menuitemradio"][aria-checked="true"] {
  background: linear-gradient(135deg, #4a0202 0%, #7c2d12 100%);
  color: white;
}

/* États et animations en mode sombre */
body.dark-theme .episode-player.playing {
  border-color: rgb(74 2 2 / 60%);
  box-shadow: 0 12px 40px rgb(74 2 2 / 30%);
}

body.dark-theme .episode-player.playing::before {
  background: linear-gradient(90deg, #4a0202 0%, #0a0000 50%, #4a0202 100%);
}

body.dark-theme .episode-player.error {
  background: linear-gradient(
    135deg,
    rgb(185 28 28 / 10%) 0%,
    rgb(153 27 27 / 5%) 100%
  );
  border-color: rgb(185 28 28 / 50%);
}

body.dark-theme .episode-player.loading::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgb(74 2 2 / 80%),
    transparent
  );
}

body.dark-theme .plyr--playing .plyr__control--overlaid {
  animation: pulse-play-dark 1.5s ease-in-out infinite;
}

@keyframes pulse-play-dark {
  0%,
  100% {
    box-shadow: 0 4px 20px rgb(74 2 2 / 60%);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 6px 30px rgb(74 2 2 / 80%);
    transform: scale(1.02);
  }
}

body.dark-theme .plyr__control::before {
  background: rgb(74 2 2 / 30%);
}

body.dark-theme .plyr__menu__container {
  scrollbar-color: rgb(74 2 2 / 50%) transparent;
}

body.dark-theme .plyr__menu__container::-webkit-scrollbar-thumb {
  background: rgb(74 2 2 / 50%);
}

body.dark-theme .plyr__menu__container::-webkit-scrollbar-thumb:hover {
  background: rgb(74 2 2 / 70%);
}

/* ==========================================================================
   Responsive Design - Lecteurs Audio
   ========================================================================== */
@media (width <= 768px) {
  .episode-player {
    margin-top: 1.25rem;
    min-height: 70px;
    padding: 1.25rem;
  }

  .plyr--audio .plyr__controls {
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 50px;
    padding: 1rem;
  }

  .plyr__control--overlaid {
    height: 48px;
    width: 48px;
  }

  .plyr__control--overlaid svg {
    height: 20px;
    width: 20px;
  }

  .plyr__progress {
    flex-basis: 100%;
    height: 6px;
    margin: 0 6px;
    margin-top: 0.5rem;
    min-width: 80px;
    order: 3;
  }

  .plyr__time {
    font-size: 0.8rem;
    min-width: 45px;
    padding: 4px 8px;
  }

  .plyr__volume__display {
    font-size: 0.75rem;
    min-width: 30px;
    padding: 4px 6px;
  }

  .plyr__control {
    font-size: 0.85rem;
    min-height: 36px;
    padding: 6px 10px;
  }
}

@media (width <= 480px) {
  .episode-player {
    margin-top: 1rem;
    min-height: 60px;
    padding: 1rem;
  }

  .plyr--audio .plyr__controls {
    gap: 0.5rem;
    min-height: 45px;
    padding: 0.875rem;
  }

  .plyr__control--overlaid {
    height: 44px;
    width: 44px;
  }

  .plyr__control--overlaid svg {
    height: 18px;
    width: 18px;
  }

  .plyr__control {
    font-size: 0.8rem;
    min-height: 32px;
    padding: 5px 8px;
  }

  .plyr__time,
  .plyr__volume__display {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .plyr__progress {
    height: 5px;
    margin: 0 4px;
    min-width: 60px;
  }
}

/* Textes de base */
.about-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Cards de base */
.episode-card,
.team-card,
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition-normal);
}

.episode-title,
.team-name {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.episode-description,
.episode-guest,
.episode-duration,
.team-role,
.team-description {
  color: var(--text-secondary);
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* ==========================================================================
   Lecteur Audio Flottant - Version améliorée
   ========================================================================== */

.floating-player {
  backdrop-filter: blur(10px);
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  bottom: 0;
  box-shadow: 0 -4px 20px rgb(0 0 0 / 10%);
  left: 0;
  min-height: 80px;
  padding: 1rem 1.5rem;
  position: fixed;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.floating-player.active {
  transform: translateY(0);
}

.floating-player-content {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 60px;
}

.floating-player-info {
  align-items: center;
  display: flex;
  gap: 1rem;
  max-width: 300px;
  min-width: 0;
}

.floating-player-thumbnail {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  flex-shrink: 0;
  height: 60px;
  object-fit: cover;
  width: 60px;
}

.floating-player-details {
  flex: 1;
  min-width: 0;
}

.floating-player-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-player-guest {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-player-controls {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  max-width: 650px;
  min-width: 350px;
}

/* Organisation des contrôles en groupes */
.floating-player-controls .plyr--audio .plyr__controls {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-areas: "play current progress duration volume settings";
  grid-template-columns: auto auto 1fr auto auto auto;
  width: 100%;
}

.floating-player-controls .plyr__control[data-plyr="play"] {
  grid-area: play;
}

.floating-player-controls .plyr__time--current {
  grid-area: current;
}

.floating-player-controls .plyr__progress {
  grid-area: progress;
}

.floating-player-controls .plyr__time--duration {
  grid-area: duration;
}

.floating-player-controls .plyr__volume {
  grid-area: volume;
}

.floating-player-controls .plyr__control[data-plyr="mute"] {
  grid-area: volume;
  justify-self: start;
  margin-right: 0.5rem;
}

.floating-player-controls .plyr__control[data-plyr="settings"] {
  grid-area: settings;
}

.floating-player-controls .plyr {
  --plyr-color-main: #a80506;

  width: 100%;
}

/* Styles de base pour les contrôles - remplacés par le grid ci-dessus pour desktop */

.floating-player-controls .plyr__control--overlaid {
  display: none;
}

.floating-player-controls .plyr__control {
  align-items: center;
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
}

/* Contrôles spécifiques */
.floating-player-controls .plyr__control[data-plyr="play"] {
  min-height: 48px;
  min-width: 48px;
}

.floating-player-controls .plyr__control[data-plyr="mute"] {
  min-height: 40px;
  min-width: 40px;
}

.floating-player-controls .plyr__control[data-plyr="settings"] {
  margin-left: 0.25rem;
  min-height: 40px;
  min-width: 40px;
}

.floating-player-controls .plyr__control:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

.floating-player-controls .plyr__control svg {
  height: 20px;
  width: 20px;
}

.floating-player-controls .plyr__progress {
  align-items: center;
  background: var(--border-color);
  border-radius: 4px;
  display: flex;
  flex: 1;
  height: 8px;
  margin: 0 0.75rem;
  min-width: 120px;
  overflow: hidden;
  position: relative;
}

.floating-player-controls .plyr__progress__buffer {
  background: var(--hover-bg);
  border-radius: 4px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
}

.floating-player-controls .plyr__progress__played {
  align-items: center;
  background: var(--accent-color);
  border-radius: 4px;
  display: flex;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
}

.floating-player-controls .plyr__progress__played::after {
  background: rgb(255 255 255 / 30%);
  border-radius: 0 4px 4px 0;
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
}

/* Curseur de progression visible */
.floating-player-controls .plyr__progress__played::before {
  background: var(--accent-color);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
  content: "";
  height: 16px;
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
}

.floating-player-controls .plyr__time {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
}

.floating-player-controls .plyr__volume {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  bottom: 100%;
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  flex-shrink: 0;
  height: 6px;
  height: auto;
  left: 50%;
  margin-bottom: 8px;
  opacity: 0;
  padding: 8px;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
  width: 120px;
}

.floating-player-controls
  .plyr__control[data-plyr="mute"]:hover
  + .plyr__volume,
.floating-player-controls .plyr__volume:hover {
  opacity: 1;
  visibility: visible;
}

.floating-player-controls .plyr__volume--display {
  background: var(--accent-color);
  border-radius: 4px;
  height: 6px;
  width: 100%;
}

.floating-player-controls .plyr__control[data-plyr="settings"] {
  margin-left: 1rem;
}

/* Mode sombre pour le contrôle du volume */
.dark-theme .floating-player-controls .plyr__volume {
  background: linear-gradient(
    135deg,
    rgb(10 0 0 / 95%) 0%,
    rgb(26 4 4 / 95%) 100%
  );
  border: 1px solid rgb(220 38 38 / 30%);
  box-shadow: 0 4px 12px rgb(74 2 2 / 30%);
}

.dark-theme .floating-player-controls .plyr__volume--display {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.floating-player-close {
  align-items: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
  margin-left: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.floating-player-close:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Mode sombre pour le lecteur flottant - Version améliorée */
.dark-theme .floating-player {
  backdrop-filter: blur(15px);
  background: linear-gradient(
    135deg,
    rgb(10 0 0 / 95%) 0%,
    rgb(26 4 4 / 95%) 50%,
    rgb(74 2 2 / 95%) 100%
  );
  border-top: 1px solid rgb(220 38 38 / 40%);
  box-shadow: 0 -4px 20px rgb(74 2 2 / 50%);
}

.dark-theme .floating-player-title {
  color: #f8fafc;
  text-shadow: 0 2px 4px rgb(74 2 2 / 60%);
}

.dark-theme .floating-player-guest {
  color: #e2e8f0;
}

.dark-theme .floating-player-thumbnail {
  border: 1px solid rgb(220 38 38 / 30%);
  box-shadow: 0 2px 8px rgb(74 2 2 / 60%);
}

.dark-theme .floating-player-controls .plyr {
  --plyr-color-main: #dc2626;
  --plyr-control-color: #f8fafc;
  --plyr-control-color-hover: #fff;
  --plyr-control-background-hover: rgb(220 38 38 / 80%);
  --plyr-range-track-background: rgb(74 2 2 / 40%);
  --plyr-range-fill-background: #dc2626;
  --plyr-progress-loading-background: rgb(74 2 2 / 60%);
  --plyr-progress-buffer-background: rgb(74 2 2 / 40%);
}

.dark-theme .floating-player-controls .plyr__control {
  background: linear-gradient(
    135deg,
    rgb(74 2 2 / 40%) 0%,
    rgb(26 4 4 / 60%) 100%
  );
  border: 1px solid rgb(220 38 38 / 30%);
  color: #f8fafc;
}

.dark-theme .floating-player-controls .plyr__control:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-color: #dc2626;
  box-shadow: 0 4px 15px rgb(74 2 2 / 40%);
  color: #fff;
}

.dark-theme .floating-player-controls .plyr__progress {
  background: rgb(74 2 2 / 40%);
}

.dark-theme .floating-player-controls .plyr__progress__buffer {
  background: rgb(74 2 2 / 60%);
}

.dark-theme .floating-player-controls .plyr__progress__played {
  align-items: center;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 0 10px rgb(220 38 38 / 50%);
  display: flex;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
}

.dark-theme .floating-player-controls .plyr__progress__played::after {
  background: rgb(255 255 255 / 40%);
  height: 100%;
  transform: translateY(-50%);
}

.dark-theme .floating-player-controls .plyr__progress__played::before {
  background: #ef4444;
  box-shadow: 0 2px 4px rgb(74 2 2 / 40%), 0 0 8px rgb(220 38 38 / 30%);
}

.dark-theme .floating-player-controls .plyr__time {
  color: #e2e8f0;
}

.dark-theme .floating-player-controls .plyr__volume {
  background: rgb(74 2 2 / 40%);
}

.dark-theme .floating-player-controls .plyr__volume--display {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.dark-theme .floating-player-controls .plyr__menu {
  background: linear-gradient(
    135deg,
    rgb(10 0 0 / 95%) 0%,
    rgb(26 4 4 / 95%) 100%
  );
  border: 1px solid rgb(220 38 38 / 40%);
  box-shadow: 0 8px 32px rgb(74 2 2 / 60%);
}

.dark-theme .floating-player-controls .plyr__control[role="menuitemradio"] {
  background: transparent;
  color: #e2e8f0;
}

.dark-theme
  .floating-player-controls
  .plyr__control[role="menuitemradio"]:hover,
.dark-theme
  .floating-player-controls
  .plyr__control[role="menuitemradio"][aria-checked="true"] {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
}

.dark-theme .floating-player-close {
  background: linear-gradient(
    135deg,
    rgb(74 2 2 / 30%) 0%,
    rgb(26 4 4 / 50%) 100%
  );
  border: 1px solid rgb(220 38 38 / 20%);
  color: #e2e8f0;
}

.dark-theme .floating-player-close:hover {
  background: linear-gradient(
    135deg,
    rgb(220 38 38 / 60%) 0%,
    rgb(74 2 2 / 80%) 100%
  );
  box-shadow: 0 4px 15px rgb(74 2 2 / 40%);
  color: #f8fafc;
}

/* Desktop uniquement - Organisation optimale */
@media (width >= 769px) {
  .floating-player-controls .plyr--audio .plyr__controls {
    background: transparent;
    border: none;
    min-height: 50px;
    padding: 0;
  }

  /* Reset des styles spécifiques pour desktop */
  .floating-player-controls .plyr__control[data-plyr="play"],
  .floating-player-controls .plyr__control[data-plyr="mute"],
  .floating-player-controls .plyr__control[data-plyr="settings"] {
    margin: 0;
  }

  .floating-player-controls .plyr__progress {
    margin: 0 0.75rem;
  }
}

/* Responsive - Version améliorée */
@media (width <= 768px) {
  .floating-player {
    min-height: 90px;
    padding: 1rem;
  }

  .floating-player-content {
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    min-height: 70px;
  }

  .floating-player-info {
    max-width: 250px;
  }

  .floating-player-thumbnail {
    height: 55px;
    width: 55px;
  }

  .floating-player-title {
    font-size: 0.9rem;
  }

  .floating-player-guest {
    font-size: 0.8rem;
  }

  .floating-player-controls {
    max-width: 400px;
    min-width: 250px;
  }

  /* Retour au flexbox pour tablette */
  .floating-player-controls .plyr--audio .plyr__controls {
    align-items: center;
    background: transparent;
    border: none;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0.4rem;
    grid-template-areas: unset !important;
    grid-template-columns: unset !important;
    justify-content: center;
    min-height: 55px;
    padding: 0;
  }

  .floating-player-controls .plyr__control {
    min-height: 48px;
    min-width: 48px;
    padding: 10px;
  }

  .floating-player-controls .plyr__control svg {
    height: 22px;
    width: 22px;
  }

  .floating-player-controls .plyr__progress {
    align-items: center;
    display: flex;
    height: 10px;
    margin: 0 0.8rem;
  }

  .floating-player-controls .plyr__progress__buffer,
  .floating-player-controls .plyr__progress__played {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
  }

  .floating-player-controls .plyr__time {
    font-size: 0.8rem;
    min-width: 40px;
  }

  /* Masquer le volume sur tablette */
  .floating-player-controls .plyr__volume,
  .floating-player-controls .plyr__control[data-plyr="mute"] {
    display: none;
  }

  .floating-player-close {
    font-size: 1.3rem;
    min-height: 48px;
    min-width: 48px;
  }
}

@media (width <= 480px) {
  .floating-player {
    min-height: 120px;
    padding: 0.8rem;
  }

  .floating-player-content {
    gap: 1rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    position: relative;
  }

  .floating-player-info {
    justify-self: center;
    max-width: none;
    text-align: center;
  }

  .floating-player-thumbnail {
    height: 50px;
    width: 50px;
  }

  .floating-player-title {
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .floating-player-guest {
    font-size: 0.75rem;
    max-width: none;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .floating-player-controls {
    justify-self: center;
    max-width: none;
    min-width: auto;
    width: 100%;
  }

  .floating-player-controls .plyr--audio .plyr__controls {
    align-items: center;
    background: transparent;
    border: none;
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.3rem;
    grid-template-areas: unset !important;
    grid-template-columns: unset !important;
    justify-content: center;
    min-height: 60px;
    padding: 0;
  }

  .floating-player-controls .plyr__control {
    min-height: 52px;
    min-width: 52px;
    padding: 12px;
  }

  .floating-player-controls .plyr__control svg {
    height: 24px;
    width: 24px;
  }

  .floating-player-controls .plyr__progress {
    align-items: center;
    display: flex;
    flex-basis: 100%;
    height: 12px;
    margin: 0.5rem 0.5rem 0;
    order: 10;
    position: relative;
  }

  .floating-player-controls .plyr__progress__buffer,
  .floating-player-controls .plyr__progress__played {
    border-radius: 6px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
  }

  .floating-player-controls .plyr__time {
    font-size: 0.75rem;
    min-width: 35px;
  }

  /* Masquer complètement le volume sur mobile */
  .floating-player-controls .plyr__volume,
  .floating-player-controls .plyr__control[data-plyr="mute"],
  .floating-player-controls .plyr__control[data-plyr="volume"] {
    display: none !important;
  }

  .floating-player-close {
    backdrop-filter: blur(5px);
    background: rgb(0 0 0 / 10%);
    font-size: 1.1rem;
    margin-left: 0;
    min-height: 40px;
    min-width: 40px;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    z-index: 10;
  }

  .floating-player-close:hover {
    background: rgb(0 0 0 / 20%);
  }

  /* Mode sombre pour mobile */
  .dark-theme .floating-player-close {
    background: linear-gradient(
      135deg,
      rgb(74 2 2 / 40%) 0%,
      rgb(26 4 4 / 60%) 100%
    );
    border: 1px solid rgb(220 38 38 / 30%);
    color: #e2e8f0;
  }

  .dark-theme .floating-player-close:hover {
    background: linear-gradient(
      135deg,
      rgb(220 38 38 / 70%) 0%,
      rgb(74 2 2 / 90%) 100%
    );
    box-shadow: 0 4px 15px rgb(74 2 2 / 50%);
    color: #f8fafc;
  }
}

/* Très petits écrans */
@media (width <= 360px) {
  .floating-player {
    min-height: 110px;
    padding: 0.6rem;
  }

  .floating-player-content {
    gap: 0.8rem;
  }

  .floating-player-thumbnail {
    height: 45px;
    width: 45px;
  }

  .floating-player-title {
    font-size: 0.8rem;
  }

  .floating-player-guest {
    font-size: 0.7rem;
  }

  .floating-player-controls .plyr__control {
    min-height: 48px;
    min-width: 48px;
  }

  .floating-player-controls .plyr__progress {
    align-items: center;
    display: flex;
    height: 10px;
    position: relative;
  }

  .floating-player-controls .plyr__progress__buffer,
  .floating-player-controls .plyr__progress__played {
    border-radius: 5px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
  }

  .floating-player-close {
    font-size: 1rem;
    min-height: 36px;
    min-width: 36px;
  }
}

/* Optimisations spécifiques iPhone */
@media (width <= 480px) and (min-device-pixel-ratio: 2) {
  .floating-player {
    min-height: 110px;

    /* Adaptation pour l'encoche iPhone */
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
  }

  .floating-player-controls .plyr--audio .plyr__controls {
    gap: 0.5rem;

    /* Optimisation pour les gestes iPhone */
    padding: 0.5rem 0;
  }

  .floating-player-controls .plyr__control {
    border-radius: 12px;

    /* Taille optimale pour le tactile iPhone */
    min-height: 50px;
    min-width: 50px;
  }

  .floating-player-controls .plyr__progress {
    align-items: center;
    border-radius: 7px;
    display: flex;

    /* Progress bar plus épaisse pour iPhone */
    height: 14px;
    margin: 0.8rem 1rem 0;
    position: relative;
  }

  .floating-player-controls .plyr__progress__buffer,
  .floating-player-controls .plyr__progress__played {
    border-radius: 7px;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
  }

  .floating-player-close {
    border-radius: 22px;

    /* Bouton fermer adapté à l'iPhone */
    min-height: 44px;
    min-width: 44px;
    right: max(0.5rem, env(safe-area-inset-right, 0.5rem));
    top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
  }
}

/* iPhone en mode paysage */
@media (width <= 896px) and (height <= 414px) and (orientation: landscape) {
  .floating-player {
    min-height: 80px;
    padding: 0.5rem max(0.5rem, env(safe-area-inset-left)) 0.5rem
      max(0.5rem, env(safe-area-inset-right));
  }

  .floating-player-content {
    gap: 0.8rem;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
  }

  .floating-player-info {
    justify-self: start;
    max-width: 200px;
    text-align: left;
  }

  .floating-player-controls {
    min-width: 250px;
    width: auto;
  }

  .floating-player-controls .plyr--audio .plyr__controls {
    flex-wrap: nowrap;
    min-height: 50px;
  }

  .floating-player-controls .plyr__progress {
    flex: 1;
    flex-basis: auto;
    margin: 0 0.5rem;
    order: 0;
  }
}

/* ==========================================================================
   Mode Sombre Rouge - Thème cohérent avec l'identité du site
   ========================================================================== */
body.dark-theme {
  background: linear-gradient(
    135deg,
    #0a0000 0%,
    #1a0404 25%,
    #2d0808 50%,
    #1a0404 75%,
    #0a0000 100%
  );
  color: #f1f5f9;
  transition: all 0.3s ease;
}

/* Header en mode sombre rouge */
body.dark-theme .header {
  background: linear-gradient(45deg, #0a0000 0%, #4a0202 50%, #7c2d12 100%);
  border-bottom: 1px solid rgb(220 38 38 / 30%);
  box-shadow: 0 2px 20px rgb(74 2 2 / 40%);
}

/* Hero en mode sombre rouge */
body.dark-theme .hero {
  background: linear-gradient(
    45deg,
    #0a0000 0%,
    #1a0404 25%,
    #4a0202 50%,
    #7c2d12 85%,
    #dc2626 100%
  );
  box-shadow: inset 0 0 100px rgb(74 2 2 / 30%);
}

body.dark-theme .hero::before {
  background: radial-gradient(
    circle at 30% 70%,
    rgb(220 38 38 / 15%) 0%,
    transparent 60%
  );
}

/* Sections principales */
body.dark-theme .about {
  background: linear-gradient(135deg, #0a0000 0%, #1a0404 50%, #0a0000 100%);
  border-top: 1px solid rgb(220 38 38 / 20%);
}

body.dark-theme .episodes {
  background: linear-gradient(135deg, #1a0404 0%, #0a0000 50%, #1a0404 100%);
}

body.dark-theme .team {
  background: linear-gradient(135deg, #0a0000 0%, #1a0404 50%, #2d0808 100%);
}

body.dark-theme .footer {
  background: linear-gradient(135deg, #0a0000 0%, #1a0404 25%, #4a0202 100%);
  border-top: 1px solid rgb(220 38 38 / 30%);
}

body.dark-theme .footer-gradient {
  background: linear-gradient(
    45deg,
    rgb(74 2 2 / 80%) 0%,
    rgb(220 38 38 / 40%) 50%,
    rgb(10 0 0 / 90%) 100%
  );
}

/* Cartes et éléments */
body.dark-theme .episode-card,
body.dark-theme .team-card,
body.dark-theme .feature-card {
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgb(26 4 4 / 80%) 0%,
    rgb(74 2 2 / 30%) 50%,
    rgb(10 0 0 / 80%) 100%
  );
  border: 1px solid rgb(220 38 38 / 20%);
  box-shadow: 0 8px 32px rgb(74 2 2 / 30%);
  color: #f1f5f9;
}

body.dark-theme .episode-card:hover,
body.dark-theme .team-card:hover {
  border-color: rgb(220 38 38 / 50%);
  box-shadow: 0 12px 40px rgb(74 2 2 / 50%);
  transform: translateY(-8px);
}

body.dark-theme .team-avatar {
  border: 3px solid rgb(220 38 38 / 40%);
  box-shadow: 0 8px 32px rgb(74 2 2 / 40%);
  color: #f1f5f9;
  text-shadow: 0 2px 4px rgb(74 2 2 / 60%);
}

/* Textes et titres */
body.dark-theme .section-title,
body.dark-theme .episode-title,
body.dark-theme .team-name,
body.dark-theme .feature-card h3 {
  color: #f8fafc;
  text-shadow: 0 4px 8px rgb(74 2 2 / 60%);
}

body.dark-theme .about-text,
body.dark-theme .episode-description,
body.dark-theme .episode-guest,
body.dark-theme .episode-duration,
body.dark-theme .team-role,
body.dark-theme .team-description,
body.dark-theme .feature-card p {
  color: #e2e8f0;
}

/* Éléments spéciaux avec accent rouge */
body.dark-theme .episode-duration,
body.dark-theme .team-role {
  color: rgb(220 38 38 / 90%);
  font-weight: 600;
}

/* Boutons et interactions */
body.dark-theme .cta-button,
body.dark-theme .episode-play-btn {
  background: linear-gradient(135deg, #4a0202 0%, #dc2626 50%, #7c2d12 100%);
  border: 1px solid rgb(220 38 38 / 40%);
  box-shadow: 0 4px 20px rgb(74 2 2 / 40%);
  color: #f8fafc;
}

body.dark-theme .cta-button:hover,
body.dark-theme .episode-play-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 0 8px 30px rgb(74 2 2 / 60%);
  transform: translateY(-3px);
}

body.dark-theme .episode-play-btn.playing {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  box-shadow: 0 4px 20px rgb(5 150 105 / 40%);
}

/* Navigation */
body.dark-theme .nav-link:hover {
  background: rgb(220 38 38 / 20%);
  color: #f8fafc;
}

body.dark-theme .theme-toggle:hover {
  background: rgb(220 38 38 / 30%);
  box-shadow: 0 4px 15px rgb(74 2 2 / 40%);
}

/* Footer spécifique */
body.dark-theme .footer-logo h3,
body.dark-theme .footer-nav-section h4 {
  color: #f8fafc;
}

body.dark-theme .footer-description,
body.dark-theme .footer-nav a,
body.dark-theme .contact-link,
body.dark-theme .contact-item {
  color: #e2e8f0;
}

body.dark-theme .footer-nav a:hover,
body.dark-theme .contact-link:hover {
  color: rgb(220 38 38 / 90%);
}

body.dark-theme .newsletter-input {
  background: rgb(26 4 4 / 80%);
  border: 1px solid rgb(220 38 38 / 30%);
  color: #f1f5f9;
}

body.dark-theme .newsletter-input:focus {
  border-color: rgb(220 38 38 / 60%);
  box-shadow: 0 0 0 3px rgb(74 2 2 / 30%);
}

body.dark-theme .newsletter-btn {
  background: linear-gradient(135deg, #4a0202 0%, #dc2626 100%);
  border: 1px solid rgb(220 38 38 / 40%);
}

body.dark-theme .newsletter-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 4px 15px rgb(74 2 2 / 40%);
}

/* PWA Bottom Navigation */
.bottom-nav {
  background: linear-gradient(45deg, #190101 0%, #a80506 100%);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgb(255 255 255 / 15%);
  bottom: 0;
  display: none;
  justify-content: space-around;
  left: 0;
  padding: 0.8rem 0.5rem;
  padding-bottom: calc(0.8rem + var(--safe-area-inset-bottom, 0));
  position: fixed;
  right: 0;
  z-index: 999;
  box-shadow: 0 -4px 20px rgb(0 0 0 / 30%);
}

.bottom-nav-link {
  align-items: center;
  color: rgb(255 255 255 / 70%);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 0;
  flex: 1;
  border-radius: 12px;
  margin: 0 0.25rem;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
  color: white;
  background: rgb(255 255 255 / 15%);
  transform: translateY(-2px);
}

.bottom-nav-link i {
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
}

.bottom-nav-link span {
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Show bottom nav in PWA mode only */
@media (display-mode: standalone) {
  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: calc(90px + var(--safe-area-inset-bottom, 0));
  }
}

