@font-face {
    font-family: 'Billie James';
    src: url('/fonts/BillieJames-Regular.woff');
}


:root {
    --bs-primary: #6f42c1;
    --bs-primary-rgb: 111, 66, 193;
    --bs-link-color: #6f42c1;
    --bs-link-hover-color: #59359a;
}

.btn-primary {
    --bs-btn-bg: #6f42c1;
    --bs-btn-border-color: #6f42c1;
    --bs-btn-hover-bg: #59359a;
    --bs-btn-hover-border-color: #59359a;
    --bs-btn-active-bg: #59359a;
}

.text-primary { color: #6f42c1 !important; }
.bg-primary { background-color: #6f42c1 !important; }
.border-primary { border-color: #6f42c1 !important; }
.badge.bg-primary { background-color: #6f42c1 !important; }

.hero-header {
    background: url('../img/background.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding-bottom: 76px; 
}

.hero-header h1 {
    color: 000;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
             1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    font-family: "Billie James"
}

.card-glass {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
}




/* --- LOGIQUE DE CENTRAGE --- */

@media (min-width: 768px) {
    .hero-title-container {
        width: 100%;
        text-align: center;
    }
    
    .hero-title-container h1 {
        font-size: 15rem;
    }
}

@media (max-width: 767.98px) {
    .hero-header {
        padding: 60px 0;
    }
    .hero-title-container {
        margin-bottom: 3rem; /* Espace entre le titre et le bloc de texte sur mobile */
    }
    .hero-title-container h1 {
        font-size: 7.5rem;
    }
}

/* Navbar collante avec effet de flou (Glassmorphism) */
.custom-navbar {
    background-color: rgba(111, 66, 193, 0.7); /* Fond noir semi-transparent */
    backdrop-filter: blur(10px); /* Flou derrière la barre (optionnel mais moderne) */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style des liens */
.custom-navbar .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 10px 15px !important;
}

/* Hover effect sur les liens */
.custom-navbar .nav-link:hover {
    color: #0d6efd !important; /* Couleur primaire Bootstrap au survol */
}

/* Sélecteur de langue spécifique */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Correction pour que la navbar n'empiète pas sur le H1 centré du hero */
.hero-header {
    margin-top: -76px; /* Ajuster selon la hauteur de votre navbar */
    padding-top: 76px;
}


.audio-player-glass {
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre semi-transparent comme votre navbar */
    backdrop-filter: blur(12px);    /* Effet de flou moderne */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;           /* Forme pilule très élégante */
    padding: 15px 25px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.audio-player-glass:hover {
    border-color: rgba(13, 110, 253, 0.5); /* Rappel de votre bleu au survol */
}

/* Stylisation de la balise audio elle-même (Webkit) */
audio {
    height: 35px;
    filter: invert(1) hue-rotate(180deg) brightness(1.5); /* Astuce pour rendre le lecteur blanc/bleu sans JS */
}

/* Version pour les navigateurs modernes (personnalisation des couleurs internes) */
audio::-webkit-media-controls-enclosure {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Style spécifique pour l'image de la biographie */
.bio-img-cover {
    /* Hauteur minimale sur mobile pour qu'on voie l'image */
    min-height: 300px;
    /* Sur desktop, l'image prendra 100% de la hauteur du bloc texte */
    height: 100%;
    width: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    /* Optionnel : ajouter un filtre pour assombrir légèrement l'image si elle est trop lumineuse par rapport au texte */
    /* filter: brightness(0.9); */
    border-top-left-radius: calc(0.375rem - 1px); /* Pour matcher le border-radius de Bootstrap card */
    border-bottom-left-radius: calc(0.375rem - 1px);
}

/* Ajustements pour le responsive */
@media (max-width: 767.98px) {
    .bio-img-cover {
        /* Sur mobile, l'image est au dessus, on enlève les coins arrondis du bas */
        border-bottom-left-radius: 0;
        border-top-right-radius: calc(0.375rem - 1px);
    }
}

/* Transition douce pour l'apparition du texte complet */
#bio-full-text {
    transition: opacity 0.4s ease-in-out;
}

.bg-purple {
    background-color: #6f42c1;
}

.card-category {
    min-height: 450px;
}


.custom-footer {
    background: linear-gradient(135deg, #3a1a6e 0%, #6f42c1 50%, #a87de8 100%);
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
    color: #ffffff;
}

.footer-social {
    color: #e0e0e0;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   PAGE CATALOGUE
══════════════════════════════════════════ */

/* Section principale */
.catalogue-section {
    min-height: 100vh;
    background: linear-gradient(160deg, #f8f5ff 0%, #ede7f6 100%);
    padding: 80px 0 60px;
}

/* Titre */
.catalogue-section h1 {
    color: #3a1a6e;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.catalogue-section h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6f42c1, #a87de8);
    border-radius: 2px;
    margin-top: 8px;
}

/* ── Carte filtres ── */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(111, 66, 193, 0.15);
    border-radius: 16px;
}

.card-glass .form-label {
    color: #6f42c1;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.card-glass .form-control,
.card-glass .form-select {
    border-color: rgba(111, 66, 193, 0.25);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-glass .form-control:focus,
.card-glass .form-select:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

.card-glass .input-group-text {
    border-color: rgba(111, 66, 193, 0.25);
    border-radius: 8px 0 0 8px;
}

/* ── Tableau ── */
.table-responsive {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead.table-dark th {
    background-color: #6f42c1;
    border: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    color: #fff;
}

.table thead.table-dark th:hover {
    background-color: #4a2a8e;
    cursor: pointer;
}

.table tbody tr {
    border-bottom: 1px solid rgba(111, 66, 193, 0.08);
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(111, 66, 193, 0.06);
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    color: #333;
}

/* Badges instruments */
.badge.bg-secondary {
    background: linear-gradient(135deg, #6f42c1, #a87de8) !important;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Boutons lecture */
.btn-outline-primary {
    border-color: #6f42c1;
    color: #6f42c1;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #6f42c1;
    border-color: #6f42c1;
    transform: scale(1.1);
}

/* Bouton Voir */
.btn-outline-dark {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 4px 14px;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    background: #3a1a6e;
    border-color: #3a1a6e;
    color: #fff;
}

/* ── Footer pagination ── */
.card-footer {
    background: rgba(111, 66, 193, 0.05);
    border-top: 1px solid rgba(111, 66, 193, 0.1);
    padding: 12px 20px;
    border-radius: 0 0 16px 16px;
}

.card-footer .btn-primary {
    background: #6f42c1;
    border-color: #6f42c1;
}

.card-footer .btn-outline-secondary {
    border-color: rgba(111, 66, 193, 0.3);
    color: #6f42c1;
}

.card-footer .btn-outline-secondary:hover {
    background: rgba(111, 66, 193, 0.1);
    border-color: #6f42c1;
}

/* Bouton reset */
.btn-outline-secondary {
    border-color: rgba(111, 66, 193, 0.4);
    color: #6f42c1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: rgba(111, 66, 193, 0.1);
    border-color: #6f42c1;
    color: #6f42c1;
}
/* ══════════════════════════════
   ENCART COMPOSITEUR
══════════════════════════════ */
.composer-card {
    border-radius: 16px;
    border: 1px solid rgba(111, 66, 193, 0.15);
    border-left: 4px solid #6f42c1;
}

/* Photo */
.composer-photo {
    height: 100%;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
    .composer-photo {
        min-height: 220px;
        border-radius: 16px 16px 0 0;
    }
}

/* Avatar initiale (fallback sans photo) */
.composer-avatar {
    width: 100px;
    height: 100px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a1a6e, #a87de8);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

/* Nom */
.composer-name {
    color: #3a1a6e;
}

/* Séparateur */
.composer-divider {
    height: 2px;
    width: 50px;
    background: linear-gradient(90deg, #6f42c1, #a87de8);
    border-radius: 2px;
}

/* Description */
.composer-description {
    color: #555;
    font-style: italic;
    line-height: 1.7;
    text-align: justify;
}

/* Style spécifique pour l'image de la biographie */
.bio-img-cover {
    min-height: 350px;
    height: 100%;
    width: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-top-left-radius: calc(0.375rem - 1px);
    border-bottom-left-radius: calc(0.375rem - 1px);
}

/* Ajustements responsive */
@media (max-width: 767.98px) {
    .bio-img-cover {
        min-height: 300px;
        border-bottom-left-radius: 0;
        border-top-right-radius: calc(0.375rem - 1px);
        border-top-left-radius: calc(0.375rem - 1px);
    }
}