/* ===== VARIABLES CSS ===== */
:root {
  /* Couleurs - Basées sur l'identité visuelle du podcast */
  --primary-color: #CFFF04;
  --primary-blue: #1e3a8a;
  --primary-blue-dark: #0f172a;
  --accent-blue: #3b82f6;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --text-white: #ffffff;
  --text-gray: #cbd5e1;
  --text-gray-light: #e2e8f0;
  --border-color: #334155;
  --border-color-light: #475569;
  
  /* Typographie */
  --font-family: 'Inter', sans-serif;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 1.5rem;
  --font-size-normal: 1rem;
  --font-size-small: 0.875rem;
  
  /* Espacements */
  --container-padding: 1rem;
  --section-padding: 5rem 0;
  --border-radius: 1rem;
  --border-radius-small: 0.5rem;
  
  /* Ombres */
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILITAIRES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  font-size: var(--font-size-normal);
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.accent {
  color: var(--primary-color);
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-normal);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b8e600 100%);
  color: var(--dark-bg);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(207, 255, 4, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--border-color);
}

.btn--outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav__logo .logo {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.nav__logo .logo:hover {
  transform: scale(1.05);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-white);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(207, 255, 4, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(207, 255, 4, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, transparent 0%, rgba(26, 26, 26, 0.3) 100%);
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content {
  z-index: 2;
}


.hero__title {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat__label {
  font-size: var(--font-size-small);
  color: var(--text-gray);
  margin-top: 0.25rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ===== ÉLÉMENT INTERACTIF DYNAMIQUE ===== */
.hero__interactive {
  position: relative;
  width: 400px;
  height: 400px;
  cursor: pointer;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-item {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--dark-bg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 20px rgba(207, 255, 4, 0.3);
  animation: floatAround 6s ease-in-out infinite;
}

.float-item:hover {
  transform: scale(1.5) rotate(360deg) !important;
  background: #b8e600;
  box-shadow: 0 8px 40px rgba(207, 255, 4, 0.6);
  z-index: 10;
}

.hero__interactive:hover .float-item {
  animation-play-state: paused;
}

/* Positions des éléments flottants */
.float-item--1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.float-item--2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.float-item--3 {
  top: 50%;
  left: 10%;
  animation-delay: 2s;
}

.float-item--4 {
  top: 60%;
  right: 20%;
  animation-delay: 3s;
}

.float-item--5 {
  bottom: 20%;
  left: 30%;
  animation-delay: 4s;
}

.float-item--6 {
  bottom: 10%;
  right: 10%;
  animation-delay: 5s;
}

.center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #b8e600 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--dark-bg);
  box-shadow: 0 10px 40px rgba(207, 255, 4, 0.4);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: pulse 2s ease-in-out infinite;
}

.center-circle:hover {
  transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
  box-shadow: 0 20px 60px rgba(207, 255, 4, 0.8);
}

.hero__interactive:hover .center-circle {
  animation: none;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Animations */
@keyframes floatAround {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) rotate(270deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 40px rgba(207, 255, 4, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 50px rgba(207, 255, 4, 0.6);
  }
}

/* Effet de survol global */
.hero__interactive:hover {
  transform: scale(1.05);
}

.hero__interactive:hover .float-item {
  animation-duration: 2s;
}

/* ===== PLATFORMS SECTION ===== */
.platforms {
  background: var(--darker-bg);
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.platform__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(207, 255, 4, 0.1), transparent);
  transition: var(--transition);
}

.platform__card:hover::before {
  left: 100%;
}

.platform__card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(207, 255, 4, 0.2);
}

.platform__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-white);
  background: var(--primary-color);
  flex-shrink: 0;
}

.platform__icon--spotify {
  background: #1db954;
  color: #fff;
}

.platform__icon--apple {
  background: #000;
  color: #fff;
}

.platform__icon--deezer {
  background: #ff0000;
  color: #fff;
}

.platform__icon--amazon {
  background: #ff9900;
  color: #000;
}

.platform__icon--youtube {
  background: #ff0000;
  color: #fff;
}

.platform__icon--linkedin {
  background: #0077b5;
  color: #fff;
}

.platform__content {
  flex: 1;
}

.platform__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-white);
}

.platform__description {
  font-size: var(--font-size-small);
  color: var(--text-gray);
  margin: 0;
}

.platform__arrow {
  color: var(--text-gray);
  font-size: 1rem;
  transition: var(--transition);
}

.platform__card:hover .platform__arrow {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* ===== LATEST SECTION ===== */
.latest {
  background: var(--darker-bg);
}

.player__container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.spotify-player {
  width: 100%;
  border-radius: var(--border-radius);
}

/* ===== EPISODES SECTION ===== */
.episodes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.episode__card {
  background: var(--darker-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.episode__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.episode__image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #b8e600 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.episode__play {
  width: 60px;
  height: 60px;
  background: rgba(13, 13, 13, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.episode__card:hover .episode__play {
  transform: scale(1.1);
  background: rgba(13, 13, 13, 0.9);
}

.episode__content {
  padding: 1.5rem;
}

.episode__title {
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.episode__description {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.episode__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-small);
  color: var(--text-gray);
}

.episode__date,
.episode__duration {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.episode__card--featured {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(207, 255, 4, 0.1);
}

.episode__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--dark-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.episode__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.episodes__more {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--darker-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.episodes__message {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.episodes__message i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.episodes__subscribe {
  display: flex;
  justify-content: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--darker-bg);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact__title {
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.contact__description {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact__email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.contact__email:hover {
  color: #b8e600;
}

.contact__email i {
  font-size: 1.25rem;
}

/* ===== FORMULAIRE ===== */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form__label {
  color: var(--text-white);
  font-weight: 500;
  font-size: var(--font-size-small);
}

.form__input,
.form__textarea {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background: var(--dark-bg);
  color: var(--text-white);
  font-family: var(--font-family);
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(207, 255, 4, 0.1);
  scroll-behavior: auto;
}

.form__label {
  cursor: pointer;
  user-select: none;
}

.form__label:hover {
  color: var(--primary-color);
}

/* Empêcher le scroll automatique lors du focus */
.contact__form {
  scroll-margin-top: 100px;
  position: relative;
  z-index: 1;
}

.form__input,
.form__textarea {
  scroll-margin-top: 100px;
  scroll-behavior: auto;
}

/* Empêcher tout comportement de scroll sur le formulaire */
.contact__form * {
  scroll-behavior: auto !important;
}

/* S'assurer que le formulaire ne cause pas de scroll */
.contact__form input:focus,
.contact__form textarea:focus {
  scroll-margin-top: 0 !important;
  scroll-behavior: auto !important;
}

/* Bouton de soumission spécial */
.contact__form button[type="submit"] {
  cursor: pointer !important;
  scroll-behavior: auto !important;
  scroll-margin-top: 0 !important;
}

.contact__form button[type="submit"]:focus {
  scroll-margin-top: 0 !important;
  scroll-behavior: auto !important;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer__logo-img {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 50px;
  height: 50px;
  background: var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer__copy {
  color: var(--text-gray);
  font-size: var(--font-size-small);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 968px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .episodes__grid {
    grid-template-columns: 1fr;
  }
  
  .platforms__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --section-padding: 3rem 0;
    --container-padding: 1.5rem;
  }
  
  .hero__stats {
    gap: 1rem;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero__container {
    padding: 0 1rem;
  }
  
  .hero__title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero__description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .episode__actions {
    flex-direction: column;
  }
  
  .platform__card {
    padding: 1rem;
  }
  
  .platform__icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--darker-bg);
    padding: 5rem 2rem;
    transition: var(--transition);
    z-index: 1001;
  }
  
  .nav__menu.show {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav__toggle,
  .nav__close {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
  }
  
  .hero__interactive {
    width: 300px;
    height: 300px;
  }
  
  .float-item {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .center-circle {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .footer__content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --font-size-h1: 1.8rem;
  }
  
  .hero__container {
    padding: 0 0.5rem;
  }
  
  .hero__title {
    font-size: 1.8rem;
    line-height: 1.1;
  }
  
  .hero__description {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-small);
  }
  
  .episode__card {
    margin: 0 0.5rem;
  }
  
  .hero__interactive {
    width: 250px;
    height: 250px;
  }
  
  .float-item {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .center-circle {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

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

.hero__content,
.episode__card,
.contact__container {
  animation: fadeInUp 0.8s ease-out;
}

/* ===== SCROLL SMOOTH ===== */
html {
  scroll-padding-top: 80px;
}

/* Désactiver le smooth scroll pour le formulaire de contact */
#contact-form,
#contact-form * {
  scroll-behavior: auto !important;
}

/* Empêcher le scroll automatique sur focus dans le formulaire */
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form button:focus {
  scroll-margin: 0 !important;
}

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

/* Focus visible pour l'accessibilité */
.btn:focus-visible,
.nav__link:focus-visible,
.form__input:focus-visible,
.form__textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
