/* =========================================
   Custom CSS — thème Basically_custom
   Auteur : Carl
   Localisation : /bl-themes/basically/css/custom.css
   ========================================= */


/* Barre du haut (logo, menu) */
.navbar {
  min-height: 100px;
  align-items: center;
}

/* Logo */
.navbar .logo-img {
  height: 100px !important;
  max-height: 100px !important;
  width: auto !important;
  display: block;
}

/* Suppression champ recherche dans la navbar (desktop + mobile) */
.icon-search {
  display: none !important;
}

.navbar form,
.navbar [type="search"],
.navbar .input-group,
.navbar .search,
.navbar .search-box,
.navbar .bd-search {
  display: none !important;
}

/* Masquer le sélecteur de thème (bouton Light/Dark/Auto) */
.bd-mode-toggle,
#bd-theme {
  display: none !important;
}

/* Forcer le thème clair globalement */
html {
  color-scheme: light !important;
  background-color: #0a282f !important;
}

html[data-bs-theme="light"],
html[data-bs-theme="auto"],
html[data-bs-theme="dark"] {
  color-scheme: light !important;
  background-color: #0a282f !important;
}

/* Forcer le thème clair, même si le système préfère "dark" */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #0a282f !important;
    color: #e7e7e7 !important;
  }

  [data-bs-theme="light"],
  html[data-bs-theme="light"],
  body[data-bs-theme="light"],
  [data-bs-theme="auto"],
  html[data-bs-theme="auto"],
  body[data-bs-theme="auto"],
  [data-bs-theme="dark"],
  html[data-bs-theme="dark"],
  body[data-bs-theme="dark"] {
    background-color: #0a282f !important;
    color: #e7e7e7 !important;
  }
}

/* Variables Bootstrap adaptées à B4GMAN */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"],
[data-bs-theme="auto"] {
  --bs-body-bg: #0a282f;
  --bs-body-color: #e7e7e7;
  --bs-heading-color: #212529;
  --bs-link-color: #c79a5b;
  --bs-link-hover-color: #9f7640;
  --bs-border-color: #e5e5e5;
}

/* Navbar claire */
.navbar,
.navbar.bg-body,
#main-navbar {
  background-color: #0a282f !important;
  color: #212529 !important;
  border-bottom: 1px solid #e5e5e5;
}

.navbar a.nav-link {
  color: #f9c91d !important;
}

.navbar a.nav-link:hover,
.navbar a.nav-link:focus {
  color: #ec3628 !important;
  text-decoration: none;
}

/* Menu : couleur et épaisseur du liseret de la page active */
.navbar .nav-link.active {
  color: #ec3628 !important;
  border-bottom: 2px solid #ec3628 !important;
}


/* === Base typographique globale (front) === */
body {
  font-family: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--bs-body-color);
  line-height: 1.6;
  font-size: 16px;
}

/* === Uniformisation du contenu texte (titres, paragraphes, listes, citations) === */

/* Titres – déjà orange, on affine juste les espacements */
h1,
h2,
h3 {
  color: #f9c91d;
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.9em;
}

h1 {
    font-size: 1.5em;
}

h2 {
  font-size: 2em; /* environ 25–26 px */
}

h3 {
  font-size: 1.5em; /* environ 19 px */
}

/* Paragraphes */
p {
  margin-bottom: 1.2em;
  color: var(--bs-body-color);
  text-align: justify;
  text-justify: inter-word;
}

/* Listes à puces et numérotées */
ul,
ol {
  margin: 1em 0 1.2em 2em;
  line-height: 1.6;
}

li {
  margin-bottom: 0.4em;
}

/* Blockquote */
blockquote {
  border-left: 4px solid #4b7946;
  padding-left: 1em;
  color: #666666;
  font-style: italic;
  margin: 1.5em 0;
}

/* Liens dans le texte */
a {
  color: #4b7946;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Normalisation des titres dans l'éditeur === */

/* Paragraphes toujours gris, même si TinyMCE a laissé une couleur */
body.mce-content-body p {
  color: #444 !important;
}

/* === Verrouillage complet de la typo dans l'éditeur === */
body.mce-content-body,
body.mce-content-body p,
body.mce-content-body div,
body.mce-content-body span {
  font-family: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: #444 !important;
  font-weight: 400 !important;
}

/* On redéfinit les titres APRÈS le reset ci-dessus */
body.mce-content-body h1 {
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: #444 !important; /* H1 neutre */
}

body.mce-content-body h2 {
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  color: #ec3628 !important;
}

body.mce-content-body h3 {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  color: #ec3628 !important;
}

/* Listes */
body.mce-content-body ul,
body.mce-content-body ol {
  margin-left: 2rem !important;
  line-height: 1.6 !important;
}

/* Footer */
.footer a {
    color: #ec3628;
}

.footer a:hover,
.footer a:focus {
    color: #ec3628;
}

.col-xl-4 {
    transition: transform .2s ease;
}

.col-xl-4:hover {
    transform: translateY(-3px);
}

/* Trait fin animé au survol des liens */
@media (min-width: 992px) {
  a.nav-link,
  a:not(.page-link, .btn, .ratio) {
    background-image: linear-gradient(90deg, #ec3628, #ec3628) !important;
  }
}

/* ==========================================================
   PLAYLIST — THE BEST OF B4GMAN
   ========================================================== */

.b4gman-playlist {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.b4gman-playlist-cover {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}

.b4gman-playlist-cover img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.5rem;
}

.b4gman-playlist-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.b4gman-player {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(231, 231, 231, 0.22);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.14);
}

.b4gman-now-playing {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
  text-align: center;
}

.b4gman-now-playing-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

#b4gman-current-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.b4gman-progress-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

#b4gman-current-time {
  text-align: right;
}

#b4gman-duration {
  text-align: left;
}

#b4gman-progress {
  width: 100%;
  cursor: pointer;
  accent-color: #ec3628;
}

.b4gman-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.b4gman-controls button,
.b4gman-play-all {
  border: 1px solid #ec3628;
  color: #e7e7e7;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.b4gman-controls button {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1rem;
}

.b4gman-controls .b4gman-main-button {
  width: 3.6rem;
  height: 3.6rem;
  background: #ec3628;
  color: #ffffff;
  font-size: 1.25rem;
}

.b4gman-controls button:hover,
.b4gman-controls button:focus,
.b4gman-play-all:hover,
.b4gman-play-all:focus {
  background: #ec3628;
  color: #ffffff;
}

.b4gman-controls button:hover {
  transform: scale(1.05);
}

.b4gman-play-all {
  display: block;
  min-width: 9rem;
  margin: 1.25rem auto 0;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.b4gman-track-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(231, 231, 231, 0.2);
}

.b4gman-track-list li {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.b4gman-track-list li::before {
  display: none !important;
  content: none !important;
}

.b4gman-track {
  display: grid;
  width: 100%;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(231, 231, 231, 0.2);
  color: #e7e7e7;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.b4gman-track:hover,
.b4gman-track:focus {
  color: #ffffff;
  background: rgba(236, 54, 40, 0.12);
}

.b4gman-track.is-active {
  color: #ffffff;
  background: rgba(236, 54, 40, 0.2);
}

.b4gman-track.is-active .b4gman-track-number,
.b4gman-track.is-active .b4gman-track-status {
  color: #ec3628;
}

.b4gman-track-number {
  font-size: 0.82rem;
  opacity: 0.7;
}

.b4gman-track-name {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b4gman-track-status {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
}

@media (max-width: 575.98px) {
  .b4gman-player {
    padding: 1.1rem 0.9rem;
  }

  .b4gman-progress-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.45rem;
  }

  .b4gman-track {
    grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }
}
