/* ==========================================================
 *   TAILWIND  – 3.4.1 (Base CSS)  +  Vos styles personnels
 * ========================================================== */

/*!
 * tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
 */
*,
*:after,
*:before {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}
:after,
:before {
  --tw-content: "";
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  line-height: inherit;
}
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button,
select {
  text-transform: none;
}
[type="button"],
[type="reset"],
[type="submit"],
button {
  -webkit-appearance: button;
  appearance: button;
  background-color: transparent;
  background-image: none;
}
:-moz-focusring {
  outline: auto;
}
:-moz-ui-invalid {
  box-shadow: none;
}
progress {
  vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
summary {
  display: list-item;
}
blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
menu {
  padding: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* ==============================
 *   VARIABLES & CUSTOM SETTINGS
 * ============================== */

/* A little CSS reset for better responsive behavior */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

img, iframe, video {
  max-width: 100%;
  height: auto;
}

:root {
  --primary-color: #ff69b4;
  --secondary-color: #03a9f4;
  --accent-color: #8bc34a;
  --dark-bg: #0f0f0f;
  --darker-bg: #080808;
  --transition: all 0.4s ease;
}

/* ===== GLOBAL ===== */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Russo One", sans-serif;
  color: #D9D9D9;
  overflow-x: hidden;
}

/* ---------- HOME PAGE BACKGROUND ---------- */
body.home-page {
  background-image: url("../images/david_krk_owl.jpg");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}
body:not(.home-page) {
  background-color: #416e73;
}

/* ---------- MAIN WRAPPER ---------- */
.content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- HEADER ---------- */
.hero-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.4);
}
.hero-header a {
  color: #D9D9D9;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.hero-header a:hover {
  color: var(--primary-color);
}

/* ---------- MAIN & FOOTER ---------- */
main {
  flex: 1;
  margin-bottom: auto;
}
footer {
  text-align: center;
  padding: 2rem 1rem;
}

/* ---------- PLAYER CONTAINER (mixcloud widget area) ---------- */
.player-container {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 10px;
  width: 33%;
  margin: 0.5rem auto 2rem auto;
}

/* ---------- TYPOGRAPHY ---------- */
.text-center .main-title {
  font-size: 4rem !important; /* Taille par défaut (mobile) */
  text-align: center !important;
  color: #F24957;
  animation: flicker 1.5s infinite;
  margin-top: 1rem;
  font-weight: bold;
}
@media (min-width: 640px) {
  .text-center .main-title {
    font-size: 5rem !important; /* sm:text-5xl */
  }
}

.fab.fa-whatsapp {
    color: #25D366;
}

.social-icon {
    font-size: 2.5rem; /* mobile */
}

@media (min-width: 768px) {
  .text-center .main-title {
    font-size: 6rem !important; /* md:text-6xl */
  }
}
.text-center p {
  text-align: center !important;
}
@keyframes flicker {
  0%, 100% {
    text-shadow: 0 0 2px #F24957, 0 0 5px #F24957, 0 0 10px #F24957;
  }
  50% {
    text-shadow: 0 0 5px #F24957, 0 0 10px #F24957, 0 0 15px #F24957;
  }
}

/* ---------- NEON TEXT ---------- */
.neon-text {
  animation: neon 2s ease-in-out infinite;
}
@keyframes neon {
  0%,
  100% {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff69b4, 0 0 20px #ff69b4, 0 0 25px #ff69b4, 0 0 30px #ff69b4,
      0 0 35px #ff69b4;
    color: #D9D9D9;
  }
  50% {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #03a9f4, 0 0 40px #03a9f4, 0 0 50px #03a9f4, 0 0 60px #03a9f4,
      0 0 70px #03a9f4;
    color: #D9D9D9;
  }
}

/* ---------- ICONS ---------- */
.fab {
  color: #25d366;
}
.social-icon {
  font-size: 2.5rem; /* mobile */
}
@media (min-width: 768px) {
  .social-icon {
    font-size: 3.5rem; /* desktop */
  }
}

/* ---------- RESPONSIVE OVERRIDES ---------- */
/* For tablets and smaller */
@media (max-width: 1024px) {
  .hero-header a {
    font-size: 1.1rem;
    margin: 0 0.8rem;
  }
  .text-center .main-title {
    font-size: 4.5rem !important;
  }
}

/* For mobile phones */
@media (max-width: 768px) {
  .hero-header {
    padding: 1rem;
    flex-wrap: wrap; /* Allows items to wrap */
    gap: 0.5rem 1rem; /* Adds spacing between wrapped items */
  }
  .hero-header a {
    font-size: 1rem;
    margin: 0 0.5rem;
  }

  /* Override .main-title size within responsive breakpoint */
  .text-center .main-title {
    font-size: 3rem !important;
  }

  .player-container {
    width: 80%; /* Make player wider on mobile */
  }

  .hero-logo {
    width: 100px;
    bottom: 10px;
    right: 10px;
  }
}

/* ---------- BIO PAGE ---------- */
.bio-text-container {
  background-color: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
}
.bio-text-container p {
  margin-bottom: 0.75rem;
}
.bio-quote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* ---------- LANGUAGE SELECTOR ---------- */
.language-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.language-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #D9D9D9;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.language-btn:hover,
.language-btn.active {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scale(1.05);
}

/* ---------- LANGUAGE CONTENT (language toggler) ---------- */
.lang-content {
  display: none;
}
.lang-content.active {
  display: block;
  animation: fadeIn 0.8s ease-out;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ---------- PLAYER (SiriWave) ---------- */
#waveform {
  width: 100%;
  height: 30%;
  position: absolute;
  left: 0;
  top: 50%;
  margin: -15% auto;
  display: none;
  cursor: pointer;
  opacity: 0.8;
  -webkit-user-select: none;
  user-select: none;
}
#waveform:hover {
  opacity: 1;
}
#bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.33);
  opacity: 0.9;
}
#progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

/* ---------- LOADING SPINNER ---------- */
#loading {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -35px;
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  -webkit-animation: sk-scaleout 1s infinite ease-in-out;
  animation: sk-scaleout 1s infinite ease-in-out;
  display: none;
}
@-webkit-keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}
@keyframes sk-scaleout {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}

/* ---------- PLAYLIST ---------- */
#playlist {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}
#list {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.list-song {
  width: 100%;
  height: 120px;
  font-size: 4rem; /* 50px ~ 4rem on root font‑size 10px */
  line-height: 120px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.33);
}
.list-song:hover {
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* ---------- VOLUME SLIDER ---------- */
#volume {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  touch-action: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  display: none;
}
.bar {
  position: absolute;
  top: 50%;
  left: 5%;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.33);
}
#barEmpty {
  width: 90%;
  opacity: 0.5;
  box-shadow: none;
  cursor: pointer;
}
#barFull {
  width: 90%;
}
#sliderBtn {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 93.25%;
  margin: -25px 0 0 0;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.33);
  border-radius: 25px;
  cursor: pointer;
}

/* ---------- FADE IN/OUT ---------- */
.fadeout {
  animation: fadeOut 0.5s;
}
.fadein {
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}