@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
}

.player-bar {
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#playPauseButton {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Forcer le burger visible aussi sur desktop */
@media (min-width: 992px) {
  .navbar-toggler {
    display: block !important;
  }
}

/* Section hero (bannière principale) */
.hero {
  position: relative;
  height: 60vh;
  background: url('../img/13.jpg') center center/cover no-repeat;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  border-radius: 8px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  border-radius: 8px;
}

/* Section à fond clair */
#about img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#about img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Boutons et liens */
.btn-primary {
  background-color: #00aeef;
  border: none;
}

.btn-primary:hover {
  background-color: #0078a0;
}

/* 🌗 Transition douce entre les thèmes */
html, body, .navbar, .player-bar, .hero, #about, .bg-light {
  transition: background-color 0.4s ease, color 0.4s ease, filter 0.4s ease;
}

/* 🌙 Thème sombre */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .navbar,
body.dark-mode .offcanvas {
  background-color: #1c1c1c !important;
  color: #f1f1f1;
}

body.dark-mode .nav-link {
  color: #e0e0e0 !important;
}

body.dark-mode .nav-link:hover {
  color: #00aeef !important;
}

body.dark-mode .btn-primary {
  background-color: #00aeef;
}

body.dark-mode .hero {
  text-shadow: none;
  border-radius: 8px;
  filter: brightness(0.8);
}

body.dark-mode .bg-light {
  background-color: #222 !important;
}

body.dark-mode .player-bar {
  background-color: rgba(23,51,87,1) !important;
  color: #fff;
}

body.dark-mode .offcanvas-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
  color: #fff;
}

/* Liens et boutons dans le mode sombre */
body.dark-mode a {
  color: #fff;
}

body.dark-mode a:hover {
  color: #f0f0f0;
}

/* 🔧 Correction de la couleur du texte atténué en mode sombre */
body.dark-mode .text-muted {
  color: #ccc !important; /* gris clair lisible sur fond foncé */
}

/* Si tu préfères du blanc cassé plutôt que gris : */
body.dark-mode .text-muted-strong {
  color: #f1f1f1 !important;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
  color: #e6e6e6;
}

/* Par défaut : mode clair */
.logo-dark {
  display: none;
}

body.dark-mode .logo-light {
  display: none;
}

body.dark-mode .logo-dark {
  display: inline-block;
}
/* 🔧 Logo responsive dans la navbar */
.navbar-brand img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}

/* 📱 Sur mobile, on réduit légèrement la taille du logo */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 38px;
  }

  /* On ajuste un peu le padding du header pour l'alignement */
  .navbar .container {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  /* On réduit un poil la taille des icônes */
  #themeToggle i,
  .navbar-toggler-icon {
    transform: scale(0.9);
  }
}


/* 🌗 Icône du burger (par défaut = noire) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 🌙 Icône du burger en mode sombre (blanche) */
body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Pour que le bouton lui-même reste propre */
body.dark-mode .navbar-toggler {
  border: none;
  filter: brightness(1.2);
}

/* ✨ Animation douce du offcanvas (sans saccade) */
.offcanvas.fade {
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.offcanvas.fade:not(.show) {
  transform: translateX(100%);
  opacity: 0;
}
.offcanvas.fade.show {
  transform: translateX(0);
  opacity: 1;
}

/* 🌙 Croix (btn-close) blanche en dark mode */
body.dark-mode .btn-close {
  filter: invert(1) brightness(1.2);
}

/* Option : fond du header un peu plus sombre pour contraster avec le logo */
body.dark-mode .navbar {
  background-color: #0f0f0f !important;
}

/* 📸 Uniformiser la hauteur des 3 images de la section #about */
#about .row img {
  width: 100%;
  height: 280px; /* hauteur uniforme (ajuste selon ton design) */
  object-fit: cover; /* rogne proprement sans déformer */
  border-radius: 8px;
}

/* Option responsive : réduit un peu sur mobile */
@media (max-width: 768px) {
  #about .row img {
    height: 200px;
  }
}


/* 🎧 Player flottant arrondi */
.player-bar {
  position: fixed;
  bottom: 15px;
  left: 15px;
  right: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  background-color: #111;
  z-index: 9999;
}

/* Animation du bouton play/pause */
#playPauseButton i {
  transition: transform 0.3s ease, color 0.3s ease;
}

#playPauseButton:hover i {
  transform: scale(1.2);
  color: #00aeef;
}

/* 🎧 Visualiseur (equalizer) */
/*.equalizer {
  width: 50px;
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.equalizer span {
  display: block;
  width: 5px;
  height: 20%;
  background: #00aeef;
  border-radius: 2px;
  animation: bounce 1s infinite ease-in-out;
  animation-play-state: paused;
  opacity: 0.8;
}*/

/* Active = animation en marche */
/*.equalizer.active span {
  animation-play-state: running;
}*/

/* Effet de mouvement naturel (décalages de départ) */
/*.equalizer span:nth-child(1) { animation-delay: 0s; }
.equalizer span:nth-child(2) { animation-delay: 0.1s; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; }
.equalizer span:nth-child(4) { animation-delay: 0.3s; }
.equalizer span:nth-child(5) { animation-delay: 0.4s; }*/

/* Animation rebond (plus fluide et contrastée) */
/*@keyframes bounce {
  0%, 100% { height: 20%; }
  30% { height: 90%; }
  60% { height: 50%; }
  80% { height: 70%; }
}*/

/* Mode sombre */
body.dark-mode .equalizer span {
  background: #00aeef;
}

/* 🎵 Titres bleus Radio Klips */
h1, h2, h3, h4, h5, h6 {
  color: #00aeef;
}

/* Optionnel : renforcer le contraste en mode sombre */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #00aeef;
}


/* Stop animation quand le player est en pause */
.equalizer:not(.active) span {
  animation-play-state: paused;
  height: 20%;
  opacity: 0.4;
}

@keyframes bounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}
.equalizer span {
  animation: bounce 1.2s infinite ease-in-out;
}

.text-nosoulign {
  text-decoration: none !important;
}

/* === Section Parallax moderne === */
.parallax-section {
  position: relative;
  padding: 0 0 6rem 0;
  /*background: linear-gradient(to bottom, #fafafa 0%, #f2f2f2 100%);*/
  overflow: visible; /* ✅ on autorise le dépassement */
}

/* Bloc image */
.img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: visible; /* ✅ permet au texte de dépasser */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.img-wrapper img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: brightness(0.95) contrast(1.05);
}

.img-wrapper:hover img {
  transform: scale(1.04) rotateX(4deg) rotateY(-4deg);
  filter: brightness(1.05);
}

/* Titre superposé (80’s / 90’s) */
.overlay-title {
  position: absolute;
  bottom: -80px;
  right: 20px;
  font-size: 7rem;
  font-weight: 900;
  line-height: 0.75;
  color: #00aeef;
  /*text-shadow:
    0 0 10px rgba(0,174,239,0.6),
    0 0 20px rgba(0,174,239,0.5),
    0 0 30px rgba(0,174,239,0.3);
  animation: neonGlow 3s infinite alternate;*/
  z-index: 3;
}

/* Effet de glow “néon” */
/*@keyframes neonGlow {
  0% { text-shadow: 0 0 5px #00aeef, 0 0 15px #00aeef; opacity: 0.9; }
  100% { text-shadow: 0 0 25px #00aeef, 0 0 45px #00aeef; opacity: 1; }
}*/

/* Texte à droite */
.parallax-section h3 {
  color: #00aeef;
  font-size: 2rem;
}

.parallax-section p {
  line-height: 1.6;
  font-size: 1.05rem;
}


/* 🚫 Désactiver le parallax sur mobile */
@media (max-width: 768px) {
  .parallax-section,
  .img-wrapper img {
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }

  .img-wrapper:hover img {
    transform: none !important;
    filter: none !important;
  }

  .overlay-title {
    display: none;
  }
  .social {
    display: none !important;
  }
  .parallax-section {
    position: relative;
    padding: 0 0 0 0;
  }
  .hero {
    height: 50vh;
  }
  .px-3 {
  padding-right: 0rem !important;
  padding-left: 0rem !important;
  }
  .fs-5 {
    font-size: 0.9rem !important;
  }
}



/* Effet hover sur bouton */
.btn-primary {
  background-color: #00aeef;
  border: none;
  text-shadow: none;
}

.btn-primary:hover {
  background-color: #0078a0;
}

.btn-bleu {
  background-color: #0078a0;
}

.equalizer {
  width: 170px;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.equalizer span {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, #00a9e6, #00cfff);
  box-shadow: 0 0 4px rgba(0,174,239,0.6);
  transition: height 0.1s linear;
}

/* 📱 Adaptation mobile */
@media (max-width: 576px) {
  .equalizer {
    width: 100px;
    height: 24px; /* 🔽 réduit la hauteur globale */
  }

  .equalizer span {
    width: 3px;
    border-radius: 2px;
  }
}


.equalizer span {
  animation: none !important;
}

/* sun */
#themeToggle svg {
  cursor: pointer;
  transition: transform 0.4s ease;
}
#themeToggle:hover svg {
  transform: rotate(10deg) scale(1.1);
}

/* ☀️ Soleil */
.sun-core {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* 🌙 Lune */
.moon {
  transition: opacity 0.8s ease;
  transform-origin: center;
}

/* Masque du croissant */
.moon-cut {
  transform-origin: center;
  transition: transform 0.8s ease;
}

/* ☀️ Rayons */
.sun-rays line {
  stroke: #FFD43B;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  opacity: 0;
  transition: stroke-dashoffset 0.5s ease, opacity 0.3s ease;
}

/* ➿ Délai progressif (dans le sens horaire, en partant du haut) */
.sun-rays line:nth-child(1) { transition-delay: 0.05s; } /* haut */
.sun-rays line:nth-child(2) { transition-delay: 0.15s; } /* 45° */
.sun-rays line:nth-child(3) { transition-delay: 0.25s; } /* droite */
.sun-rays line:nth-child(4) { transition-delay: 0.35s; } /* 135° */
.sun-rays line:nth-child(5) { transition-delay: 0.45s; } /* bas */
.sun-rays line:nth-child(6) { transition-delay: 0.55s; } /* 225° */
.sun-rays line:nth-child(7) { transition-delay: 0.65s; } /* gauche */
.sun-rays line:nth-child(8) { transition-delay: 0.75s; } /* 315° */

/* 🌗 Mode clair → Soleil */
body.light-mode .sun-core {
  opacity: 1;
}

body.light-mode .sun-rays line {
  opacity: 1;
  stroke-dashoffset: 0;
}

/* 🌙 Disparition du croissant */
body.light-mode .moon {
  opacity: 0;
}

/* 🌗 Effet du masque (lune → cercle plein) */
body.light-mode .moon-cut {
  transform: translateX(28px) scale(0.4);
}

/* ☀️ Pulsation douce du soleil */
body.light-mode #themeIcon {
  animation: pulseSun 2s infinite ease-in-out;
}

@keyframes pulseSun {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ✨ Étoiles scintillantes */
.stars .star {
  transform-origin: center;
  animation: twinkle 2s infinite ease-in-out;
  opacity: 0.9;
}
.star2 {
  animation-delay: 1s;
  opacity: 0.7;
}
.stars .star {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* 🌞 Disparition des étoiles quand le soleil arrive */
body.light-mode .stars {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#themeToggle {
  padding: 0rem !important;
}
