/* --- Custom CSS for The Standard Jazz Band --- */

@font-face {
    font-family: 'Muli';
    src: url('../fonts/muli/Muli-ExtraLight.ttf');
}
@font-face {
    font-family: 'Marker';
    src: url('../fonts/marker/PermanentMarker-Regular.ttf');
}
@font-face {
    font-family: 'Boxer';
    src: url('../fonts/boxer/Boxer Script JF Regular.ttf');
}

#background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.1; /* Très légère opacité */
  z-index: 0;
  pointer-events: none; /* Empêche l'image de capturer les clics */
}

#content-wrapper {
  position: relative;
  z-index: 1;
}

body {
    font-family: 'Muli', sans-serif;
    background-color: #1a1a1a;
    color: #D8D8D8;
    line-height: 1.7;
}

main.container {
    padding-left: 5rem;
    padding-right: 5rem;
}

section.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Boxer', cursive;
    color: #DAA520;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

#listen h5 {
    font-family: 'Marker', sans-serif;
    color: #FA5858;
}

a {
    color: #FA5858;
    text-decoration: none;
}

a:hover {
    color: #B40431;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.gold-text {
    font-weight: bold;
    background: linear-gradient(45deg, #d4af37, #f7e98e, #b8860b, #f7e98e);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

/* --- Dégradé or foncé sobre avec animation --- */

.gold-texture {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #f6e3b0 0%,    /* clair doux */
        #d3a34a 15%,   /* or soutenu */
        #9b7121 32%,   /* brun-or foncé */
        #e8cf92 50%,   /* léger éclaircissement */
        #a87c22 68%,   /* or brun moyen */
        #d7ad53 85%,   /* or riche */
        #f6e3b0 100%   /* doré clair */
    );
    background-size: 300% 100%;
    animation: goldSlow 12s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes goldSlow {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

/* --- Barre de navigation --- */

.navbar {
    transition: background-color 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #1a1a1a;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #FA5858;
}

/* --- Autres styles --- */

.card {
    background-color: #2a2a2a;
    color: #D8D8D8;
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.musician-card-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-title {
    color: #FA5858;
    font-size: 1.8rem;
}

.card-text {
    font-size: 1.1rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

.blockquote-footer {
    color: #aaa;
}

.btn-primary {
    background-image: linear-gradient(to right, #B40431 0%, #FA5858 51%, #B40431 100%);
    background-size: 200% auto;
    border: none;
    color: white;
    transition: 0.5s;
}

.btn-primary:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}

/* --- Styles pour le carousel --- */

#photoCarousel {
    height: 50vh; /* Hauteur relative à la fenêtre */
    max-height: 600px; /* Hauteur maximale */
    min-height: 400px; /* Hauteur minimale */
    overflow: hidden;
}

#photoCarousel .carousel-inner,
#photoCarousel .carousel-item {
    height: 100%;
}

#photoCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image pour remplir l'espace */
    object-position: top; /* Aligne le haut de l'image */
}

/* --- Styles pour le lecteur audio --- */

.green-audio-player {
    background-color: #333 !important; /* Grey background */
    border-radius: 12px !important;    /* Arrondi global */
    overflow: hidden;                  /* Indispensable pour que l'arrondi se voie */
}

.green-audio-player .volume {
    display: none !important;
}

/* Piste (partie non-lue) */
.green-audio-player .controls__slider {
    background-color: #596573 !important;
    border-radius: 4px !important;
}

/* Partie déjà lue (progress bar) */
.green-audio-player .controls__progress.gap-progress {
    background-color: #ff4b4b !important;
}

/* Bouton du slider (pin) */
.green-audio-player .pin.progress__pin {
    background-color: #ff4b4b !important;
}

/* --- Améliorations pour le responsive design --- */

#listen .row > div {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally within each column */
}

/* --- Styles pour les écrans mobiles --- */

@media (max-width: 767.98px) {
    main.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    #listen .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .green-audio-player {
        width: 100%;
        box-sizing: border-box;
    }
}
