@charset "UTF-8";
/* Body */
    :root {
        --primary-color: #0FB89F;
        --secondary-color: #3a3e42;
        --accent-color: #E03757;
        --light-bg: #BFBFBF;
        --track-highlight: #e9ecef;
        --search-highlight: #fff3cd;
        --player-height-desktop: 120px;
        --player-height-mobile: 150px;
        --player-height-compact: 60px;
        --touch-target-size: 44px; /* Taille minimum recommandée pour les cibles tactiles */
    }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        padding-bottom: var(--player-height-desktop);
        background-color: lightslategray;
    }
    .loader-container {
        display: none; /* Caché par défaut */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
    }
    
    /* Header avec logo */
    .app-header {
        display: flex;
        justify-content: space-between; /* Répartir l'espace entre les éléments */
        align-items: center;
        padding: 0.5rem 1rem; /* Ajout de padding horizontal */
        margin-bottom: 1rem;
        background-color: lightslategray; /* Même couleur que le fond */
        position: fixed; /* Rend l'en-tête fixe */
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000; /* S'assure que l'en-tête apparaît au-dessus des autres éléments */
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Ajoute une ombre légère */
    }
	/* Style pour les icônes de navigation */
    .nav-icons {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 500px; /* Limite la largeur pour éviter un trop grand espacement */
        margin: 0 auto;
    }

    .nav-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #333;
        text-decoration: none;
        padding: 5px;
        border-radius: 5px;
        transition: background-color 0.2s;
    }

    .nav-icon:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .nav-icon i {
        font-size: 30px; /* Icônes agrandies */
        margin-bottom: 2px;
    }
    /* Bouton pour remonter en haut de la page */
    .scroll-to-top {
        position: fixed;
        bottom: 130px; /* Position au-dessus du lecteur audio */
        right: 20px;
        background-color: greenyellow;
        color: red;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .scroll-to-top.visible {
        opacity: 1;
    }

    .scroll-to-top i {
        font-size: 24px;
    }
    
    /* Position du bouton scroll-to-current */
    #scroll-to-current {
        position: fixed !important;
        bottom: 46px !important; /* Distance du bas */
        right: 16px !important;
        background-color: #0FB89F;
        color: white;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        /* Supprimer la marge */
        margin-left: 0;
        font-size: 24px;
        z-index: 1001 !important; /* Valeur supérieure à celle du lecteur */
    }

    #scroll-to-current:hover {
        background-color: #0ca38c;
        transform: scale(1.1);
    }
    @media (max-width: 576px) {
        #scroll-to-current {
            bottom: 0px; /* Ajustement pour mobile */
            width: 40px;
            height: 40px;
            right: 12px;
            font-size: 20px;
        }
    }
    
    .container.mt-4 {
        margin-top: 70px !important; /* Ajuste cette valeur en fonction de la hauteur de votre en-tête */
        max-width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }

    .app-logo {
        height: 50px;
        width: auto;
    }

    /* Styles pour la nouvelle interface de recherche */
    .search-container {
        margin-bottom: 30px;
    }

    .search-term {
        color: var(--accent-color);
        font-weight: bold;
    }

    .results-header {
        background-color: var(--secondary-color);
        padding: 10px 15px;
        border-radius: 6px;
        color: white;
        margin-bottom: 15px;
    }

    .results-title {
        margin: 0;
        font-size: 1.1rem;
    }
	/* Style pour mettre en évidence les termes recherchés */
    .highlight {
        background-color: var(--search-highlight);
        padding: 0 2px;
        border-radius: 3px;
    }

    /* Styles pour les sélecteurs de la recherche avancée */
    .form-select, .form-control {
        background-color: #2c3135;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .form-select:focus, .form-control:focus {
        background-color: #2c3135;
        color: white;
        box-shadow: 0 0 0 0.25rem rgba(15, 184, 159, 0.25);
        border-color: var(--primary-color);
    }

    .form-select option {
        background-color: #2c3135;
        color: white;
    }

/* Style pour colorer en jaune les labels d'optgroup */
#main-artist-filter optgroup {
    color: yellow;
    text-align: left;
}

#instrumentation-filter optgroup {
    color: yellow;
    text-align: left;
}

#composer-filter optgroup {
    color: yellow;
    text-align: left;
}

/* Assure que le texte est visible dans les navigateurs qui ne supportent pas directement le style dans les optgroup */
#main-artist-filter optgroup::before,
#instrumentation-filter optgroup::before,
#composer-filter optgroup::before {
    content: '';
    display: block;
    text-align: left;
}
    /* Styles personnalisés pour le switch "Morceaux célèbres uniquement" */

    /* Grossir le switch */
    .form-check-input[type="checkbox"] {
        width: 3rem !important;        /* Augmenter la largeur */
        height: 1.5rem !important;     /* Augmenter la hauteur */
        margin-top: 0.25rem !important;
        border: 2px solid var(--light-bg) !important;  /* Ajouter un liseré de la couleur --light-bg */
        background-color: #2c3135 !important;  /* Fond sombre comme les autres champs */
    }

    /* Modifier la couleur du petit rond quand non sélectionné */
    .form-check-input:not(:checked)::before {
        background-color: #6C757D !important;
    }

    /* Augmenter la taille du rond qui se déplace */
    .form-check-input[type="checkbox"]::after {
        width: calc(1.5rem - 4px) !important;  /* Taille ajustée pour le contour */
        height: calc(1.5rem - 4px) !important;
        border-radius: 50% !important;
        background-color: #6C757D !important;  /* Couleur grise quand non sélectionné */
    }

    /* Couleur du rond quand sélectionné */
    .form-check-input:checked[type="checkbox"]::after {
        background-color: white !important;  /* Blanc quand sélectionné */
    }

    /* Couleur de fond quand sélectionné */
    .form-check-input:checked {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
    }

    /* Ajuster le positionnement du label */
    .form-check-label {
        padding-left: 0.5rem !important;
        margin-top: 0.25rem !important;
        font-size: 0.9rem !important;
        color: #0CA38C; /* Changé de var(--light-bg) à white */
    }

    /* Ajuster le conteneur du switch */
    .form-check.form-switch {
        display: flex;
        align-items: center;
        min-height: 36px !important;
    }
    

    /* Amélioration du contraste pour le texte d'aide */
    .form-text {
        color: rgba(255, 255, 255, 0.6);
    }
	/* Réduction des espaces dans la recherche avancée */

    /* 1. Réduire l'espacement global de la grille */
    .row.g-3 {
        --bs-gutter-y: 0.25rem !important;
        margin-top: 0 !important;
        row-gap: 0.25rem !important;
    }

    /* 2. Réduire la marge entre les éléments de colonne */
    .col-md-6 {
        margin-bottom: 0.01rem !important;
        padding-top: 0.01rem !important;
        padding-bottom: 0.01rem !important;
    }

    /* 3. Réduire la marge sous les labels */
    .form-label {
        margin-bottom: 0.05rem !important;
        color: white; /* Changé pour être en blanc */
    }

    /* 4. Réduire le padding du contenu de la carte */
    .card-body {
        padding: 0.25rem !important;
    }

    /* 5. Réduire la marge sous la carte de recherche avancée */
    .card.mb-4 {
        margin-bottom: 0.25rem !important;
    }

    /* 6. Ajuster le padding de l'en-tête de carte */
    .card-header {
        padding: 0.5rem 0.75rem !important;
    }

    /* 7. Réduire l'espacement du checkbox */
    .form-check.form-switch.mt-4 {
        margin-top: 0.25rem !important;
    }

    /* 8. Réduire l'espacement vertical dans le conteneur de recherche avancée */
    #advanced-search-container {
        padding-top: 0.15rem !important;
    }
    /* Style pour mettre en évidence les termes recherchés */
    .highlight {
        background-color: var(--search-highlight);
        padding: 0 2px;
        border-radius: 3px;
        font-weight: bold;
    }
    
    /* Style pour le bouton de réinitialisation circulaire */
    .btn-circle-primary {
        background-color: #6C757D;
        color: white;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        line-height: 1;
        padding: 0 !important; /* Important pour éviter que Bootstrap ne modifie le padding */
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        transition: background-color 0.2s, transform 0.2s;
        min-width: 38px; /* Garantit une largeur minimale */
        min-height: 38px; /* Garantit une hauteur minimale */
        max-width: 38px; /* Limite la largeur maximale */
        max-height: 38px; /* Limite la hauteur maximale */
        box-sizing: border-box !important; /* Force le modèle de boîte à inclure le padding et la bordure */
        aspect-ratio: 1/1; /* Force un ratio 1:1 pour garantir un cercle parfait */
        flex-shrink: 0; /* Empêche le bouton de rétrécir */
        position: absolute;
        right: 10px;
        top: 0;
        z-index: 10;
    }

    .btn-circle-primary:hover {
        background-color: #0ca38c; /* Version plus foncée de la couleur primaire */
        transform: scale(1.05);
    }

    .btn-circle-primary i {
        font-size: 1.25rem; /* Taille de l'icône */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
	.btn-circle-primary#reset-quick-search {
        position: absolute;
        right: 10px; /* Décalage depuis la droite */
        top: -42px; /* Positionnement vertical pour l'aligner juste sous le bouton de recherche */
    }

    /* Pour s'assurer que les styles ne sont pas écrasés sur les petits écrans */
    @media (max-width: 576px) {
        .btn-circle-primary {
            width: 38px !important;
            height: 38px !important;
            padding: 0 !important;
            line-height: 1 !important;
            right: 2px;
            top: 2px;
        }
        .btn-circle-primary#reset-quick-search {
            right: 2px;
            top: 0px; /* Ajuster si nécessaire pour mobile */
        }
    }

    /* Ajuster la position du texte d'aide pour un meilleur alignement vertical */
    .form-text {
        margin-top: 8px;
        padding-right: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative; /* Pour permettre le positionnement absolu du bouton */
    }
    /* Styles pour les morceaux et contrôles */
    /* Items de la liste des morceaux */
    .track-item-new {
        display: flex;
        align-items: flex-start; /* Aligner les éléments au début plutôt qu'au centre */
        cursor: pointer;
        padding: 12px 10px;
        border-radius: 6px;
        margin-bottom: 6px;
        transition: all 0.2s;
        background-color: var(--secondary-color);
        color: white;
        position: relative;
        width: 100%;
    }

    .track-item-new:hover {
        transform: translateX(5px);
        background-color: #212529;
    }

    .track-item-new.active {
        border-left: 4px solid var(--accent-color);
        background-color: #212529;
    }

    /* Conteneur pour numéro + cœur empilés - agrandi */
    .track-index-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Aligner au début plutôt qu'au centre */
        margin-right: 4px;
        flex-shrink: 0;
        min-width: 50px;
        width: 50px;
        padding-top: 2px; /* Ajout d'un léger padding pour aligner parfaitement */
    }

    /* Modification du track-number */
    .track-number {
        display: block; /* Changé de table à block */
        width: 100%;
        margin: 0 auto 8px; /* Ajusté la marge pour pousser le cœur vers le bas */
        background-color: transparent;
        color: var(--light-bg);
        font-weight: normal;
        font-size: 12px;
        text-align: center;
        margin-top: 0; /* S'assurer qu'il n'y a pas de marge en haut */
    }

    /* Modification du track-heart pour maintenir l'équilibre visuel */
    .track-heart {
        width: 100%;
        text-align: center;
        color: var(--primary-color);
        font-size: 22px;
        cursor: pointer;
        transition: transform 0.2s, color 0.2s;
        margin-top: auto; /* Pousse le cœur vers le bas du conteneur */
    }
	.track-heart:hover {
        transform: scale(1.2);
        color: var(--accent-color);
    }
    
    .track-heart-fill {
        color: var(--accent-color);
    }
    
    .track-info-container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Aligner au début */
        flex-grow: 1;
        min-width: 0;
        overflow: hidden;
        padding-right: 10px;
    }
    
    /* Styles pour la première ligne */
    .track-info-line1 {
        display: flex;
        width: 100%;
        margin-bottom: 2px;
    }
    
    .track-info-primary {
        color: var(--accent-color);
        font-weight: bold;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 10px;
        flex-grow: 1;
    }
    
    .track-info-secondary {
        color: var(--light-bg);
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        max-width: 40%;
    }
    
    /* Style pour la seconde ligne */
    .track-info-line2 {
        color: var(--primary-color);
        font-style: italic;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .track-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Aligner au début */
        margin-left: 8px;
        flex-shrink: 0;
        padding-top: 2px; /* Alignement avec le reste */
    }
    
    .track-info-btn {
        margin-right: -14px;
        color: white;
        background-color: cadetblue;
        border-radius: 50%;
        width: 40px; /* Agrandi de 32px à 42px */
        height: 40px; /* Agrandi de 32px à 42px */
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 22px; /* Agrandi de 18px à 22px */
        transition: background-color 0.2s, transform 0.2s;
    }

    .track-info-btn:hover {
        background-color: var(--accent-color);
        transform: scale(1.1);
    }

    .track-composer {
        color: var(--primary-color);
        font-weight: bold;
        font-size: 18px;
        width: 100%;
        white-space: normal; /* Permet le retour à la ligne */
        overflow: hidden;
        margin-bottom: 4px;
    }

    .track-title {
        color: var(--accent-color);
        font-weight: bold;
        font-size: 16px;
        width: 100%;
        white-space: normal; /* Permet le retour à la ligne */
        overflow: hidden;
        margin-bottom: 4px;
    }
	.track-artist {
        color: var(--light-bg);
        font-size: 18px;
        width: 100%;
        white-space: normal; /* Permet le retour à la ligne */
        overflow: hidden;
    }

    /* Style spécifique pour les boutons de tri actifs */
    .btn-outline-primary.active {
        background-color: var(--primary-color);
        color: white;
    }
	.btn-outline-label {
        color: #white;
        border: none;
    }
	
	/* Style personnalisé pour le toggle switch des titres célèbres */
	.custom-switch {
		display: flex;
		align-items: center;
		gap: 8px;
		cursor: pointer;
	}

	.switch-track {
		position: relative;
		display: inline-block;
		width: 40px;
		height: 22px;
		background-color: #212529;
		border-radius: 10px;
		transition: background-color 0.3s;
		border: 1px solid white;
    	box-sizing: border-box;
	}

	.switch-thumb {
		position: absolute;
		top: 2px;
		left: 2px;
		width: 16px;
		height: 16px;
		background-color: #0FB89F;
		border-radius: 50%;
		transition: all 0.3s;
	}

	/* État activé */
	input[type="checkbox"]:checked + .switch-track {
		background-color: #FFC917;
	}

	input[type="checkbox"]:checked + .switch-track .switch-thumb {
		left: 18px;
		background-color: black;
	}

	.switch-label {
		color: #0FB89F;
		font-size: 14px;
	}

	/* Cache la checkbox originale */
	.custom-switch input[type="checkbox"] {
		display: none;
	}

	/* Animation au survol */
	.switch-track:hover .switch-thumb {
		transform: scale(1.1);
	}
    
	/* Style plus attractif pour les boutons radio OUI/NON */
	.btn-group[aria-label="Toggle famous"] {
		border-radius: 8px;
		overflow: hidden;
		box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	}

	.btn-group[aria-label="Toggle famous"] .btn {
		padding: 0.25rem 1rem;
		font-weight: bold;
		transition: all 0.2s ease;
		border: none;
	}

	/* Style pour le bouton NON */
	.btn-group[aria-label="Toggle famous"] .btn-outline-secondary {
		background-color: #495057;
		color: white;
	}

	/* Style pour le bouton OUI */
	.btn-group[aria-label="Toggle famous"] .btn-outline-primary {
		background-color: #495057;
		color: white;
	}

	/* Style pour le bouton NON actif */
	.btn-check:checked + .btn-outline-secondary {
		background-color: gold !important;
		color: black !important;
		box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
	}

	/* Style pour le bouton OUI actif - utilise la couleur primaire turquoise */
	.btn-check:checked + .btn-outline-primary {
		background-color: gold !important;
		color: black !important;
		box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
	}

    /* Style pour les titres célèbres */
    .famous-title {
        color: gold !important; /* Couleur or pour les titres célèbres */
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.5); /* Ombre légère pour meilleure lisibilité */
    }
    
    .famous-badge {
        display: none;
    }
    
    .famous-badge-modal {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background-color: gold;
        color: #333;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        margin-left: 10px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        vertical-align: middle;
    }

    .famous-badge-modal i {
        font-size: 14px;
        color: #333;
    }
	
	/* Style pour le bouton Réinitialiser */
	#reset-filters {
		background-color: #E03757 !important;
		color: white !important;
		border-color: #E03757 !important;
		font-size: 20px;
		margin-top: -10px;
	}

	#reset-filters:hover {
		background-color: #c92f4b !important;
		border-color: #c92f4b !important;
		transform: scale(1.05);
	}

	/* Style pour le bouton Réinitialiser */
	#apply-filters {
		background-color: #0FB89F !important;
		color: white !important;
		border-color: #0FB89F !important;
		font-size: 20px;
		margin-top: -10px;
	}

	#apply-filters:hover {
		background-color: #0FB89F !important;
		border-color: #0FB89F !important;
		transform: scale(1.05);
	}
    
    /* Animations et effets visuels */
    @keyframes pulse-highlight-playlist {
        0% { transform: translateX(0); background-color: #3a3e42; }
        25% { transform: translateX(5px); background-color: rgba(15, 184, 159, 0.3); } /* Changé en couleur turquoise */
        50% { transform: translateX(0); background-color: #3a3e42; }
        75% { transform: translateX(5px); background-color: rgba(15, 184, 159, 0.3); } /* Changé en couleur turquoise */
        100% { transform: translateX(0); background-color: #3a3e42; }
    }
    .highlight-scroll-playlist {
        animation: pulse-highlight-playlist 2s ease-in-out;
    }
    /* Styles pour les modales */
    .modal-header-lyrics {
        font-size: 24px;
        color: white; /* Couleur blanche pour le micro */
        background-color: #9370DB; /* Fond violet */
        border-radius: 50%; /* Forme de cercle */
        width: 35px; /* Largeur fixe pour le cercle */
        height: 35px; /* Hauteur fixe pour le cercle */
        cursor: pointer;
        transition: transform 0.2s, background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-header-lyrics:hover {
        transform: scale(1.2);
        background-color: var(--accent-color); /* Utilise la couleur d'accent au survol */
    }
	/* Style pour les actions d'en-tête (cœur et bouton fermer) */
    .modal-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Style pour le cœur dans l'en-tête */
    .modal-header-heart {
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        transition: transform 0.2s, color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-header-heart:hover {
        transform: scale(1.2);
        color: var(--accent-color);
    }

    .modal-header-heart-fill {
        color: var(--accent-color);
    }
    
    .info-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(4px);
    }

    .info-modal-content {
        background-color: #212529;
        color: white;
        border-radius: 12px;
        width: 90%;
        max-width: 550px;
        max-height: 85vh;
        overflow-y: auto;
        padding: 0;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .info-modal-content::-webkit-scrollbar {
        width: 8px;
    }

    .info-modal-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0 12px 12px 0;
    }

    .info-modal-content::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 10px;
    }

    .info-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #2c3135; /* Légèrement plus clair que le fond */
        border-radius: 12px 12px 0 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .info-modal-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 0;
        color: var(--primary-color);
    }

    .new-close-btn {
        margin-right: -6px;
        background-color: cadetblue !important;
        color: white !important;
        font-size: 24px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        transition: transform 0.2s;
    }
	.new-close-btn:hover {
        transform: scale(1.1);
    }

    .info-modal-body {
        padding: 10px;
    }

    /* Style pour le pied de page de la modal avec les contrôles du lecteur */
    .info-modal-footer {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0 0 12px 12px;
        position: sticky;
        bottom: 0;
        display: flex;
        justify-content: center; /* Centrer les contrôles */
    }

    .modal-player-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    /* Lecteur audio fixé en bas */
    .player-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #212529;
        color: white;
        padding: 15px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
    }

    /* Classe pour réduire le lecteur */
    .player-container.minimized {
        transform: translateY(calc(100% - var(--player-height-compact)));
    }

    .player-toggle {
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--secondary-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    /* Style pour le conteneur des contrôles audio */
    .audio-control-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px; /* Augmentation de l'espace entre les boutons */
        margin-bottom: 10px;
        width: 100%;
    }

    /* Masquer l'audio player natif */
    .hidden-audio-player {
        display: none;
    }

    /* Style des boutons ronds */
    .round-player-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        color: white;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 16px;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    /* Bouton de lecture légèrement plus grand */
    .round-player-btn.play-btn {
        width: 60px;
        height: 60px;
        background-color: #E03757;
        font-size: 24px;
    }

    /* Effet au survol */
    .round-player-btn:hover {
        transform: scale(1.1);
        background-color: #444;
    }

    .round-player-btn.play-btn:hover {
        background-color: #c92f4b;
    }

    /* Style pour les boutons désactivés */
    .round-player-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    /* Barre de progression */
    .player-progress-container {
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: 5px;
        gap: 8px;
    }

    #current-time, #duration {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        min-width: 35px;
    }

    .progress-bar-container {
        flex-grow: 1;
        height: 5px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
        cursor: pointer;
        position: relative;
    }

    #progress-bar {
        height: 100%;
        background-color: #0FB89F;
        border-radius: 3px;
        width: 0%;
        transition: width 0.1s linear;
    }
	/* Styles pour la fenêtre modale des paroles */
    .lyrics-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(4px);
    }

    .lyrics-modal-content {
        background-color: #212529;
        text-align: left;
        color: white;
        border-radius: 12px;
        width: 90%;
        max-width: 600px;
        max-height: 85vh;
        overflow-y: auto;
        padding: 0;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lyrics-modal-content::-webkit-scrollbar {
        width: 8px;
    }

    .lyrics-modal-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0 12px 12px 0;
    }

    .lyrics-modal-content::-webkit-scrollbar-thumb {
        background-color: #9370DB; /* Même couleur que le bouton micro */
        border-radius: 10px;
    }

    .lyrics-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #2c3135;
        border-radius: 12px 12px 0 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .lyrics-modal-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 0;
        color: #9370DB;
    }

    .lyrics-modal-body {
        margin-top: -70px;
        padding: 0 20px 20px 20px; /* Suppression du padding top pour réduire l'espace */
        white-space: pre-wrap; /* Préserve les retours à la ligne */
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: left; /* Aligner le texte à gauche */
    }

    .lyrics-content {
        text-align: left; /* Aligner le texte à gauche */
    }

    .lyrics-loading {
        text-align: center;
        padding: 30px;
    }

    .lyrics-error {
        color: #ff6b6b;
        text-align: center;
        padding: 20px;
    }
	/* Style pour le bouton micro */
    .track-lyrics-btn {
        margin-right: -14px;
        margin-top: 8px; /* Espacement par rapport au bouton info */
        color: white;
        background-color: #9370DB; /* Couleur violette pour différencier du bouton info */
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 22px;
        transition: background-color 0.2s, transform 0.2s;
    }

    .track-lyrics-btn:hover {
        background-color: var(--accent-color);
        transform: scale(1.1);
    }
	
	/* Effet de défilement pour le texte trop long */
	@keyframes marquee {
		0% { transform: translateX(100%); }
		100% { transform: translateX(-100%); }
	}

	.marquee {
		white-space: nowrap;
		overflow: hidden;
		position: relative;
	}

	.marquee.active-marquee .marquee-content {
		display: inline-block;
		padding-right: 50px;
		animation: marquee 15s linear infinite;
	}

	/* Pause l'animation au survol */
	.marquee:hover .marquee-content {
		animation-play-state: paused;
	}
	
	/* Responsive cards */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        overflow: hidden;
        background-color: #212529;
        width: calc(100% - 10px);
        margin-left: auto;
        margin-right: auto;
    }

    .card-header {
        color: white;
        background-color: #2c3135; /* Légèrement plus clair que le fond */
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 0.75rem 1rem;
    }
	
	/* Pour retirer la ligne noire sous la div de recherche (modifie la bordure si présente) */
	.card-body {
		border-bottom: none !important;
	}

	/* Style pour le bouton APPROFONDIE centré */
	#toggle-advanced-search {
		min-width: 150px;
		background-color: #0FB89F !important; /* Toujours fond turquoise */
		color: white !important; /* Texte toujours blanc */
		border-color: #0FB89F !important;
		transition: transform 0.2s ease; /* Transition seulement pour l'effet scale */
	}
	/* Mettre le texte du bouton "RECHERCHE APPROFONDIE" en gras */
	#toggle-advanced-search #toggle-text {
		font-weight: bold !important;
	}

	/* S'assurer que le texte reste en gras même quand le toggle est activé */
	#toggle-advanced-search.show-less #toggle-text {
		font-weight: bold !important;
	}

	#toggle-advanced-search:hover,
	#toggle-advanced-search:focus,
	#toggle-advanced-search:active {
		background-color: #0FB89F !important;
		border-color: #0FB89F !important;
		color: white !important;
		/* Garde seulement l'effet de grossissement léger */
		transform: scale(1.05);
	}
	/* Style pour quand il est à l'état "Masquer" (avancé ouvert) */
	#toggle-advanced-search.show-less {
		background-color: #0FB89F !important;
		color: white !important;
	}

	/* Pour s'assurer que le conteneur du bouton est bien aligné */
	.card-body .text-center {
		margin-bottom: 5px;
	}

	/* Pour assurer une transition fluide lors de l'affichage/masquage de la recherche avancée */
	#advanced-search-container {
		transition: all 0.3s ease;
	}

	/* Pour supprimer la bordure inférieure du card-header (ligne noire supplémentaire) */
	.card-header {
		border-bottom: none !important;
	}

    /* Amélioration pour la navigation */
    .btn-group {
        flex-wrap: wrap;
    }

    @media (max-width: 576px) {
        .btn-group .btn {
            padding: 0.375rem 0.5rem;
            font-size: 0.8rem;
        }

        .card-header {
            flex-direction: column;
            gap: 0.5rem;
        }

        .card-header .btn-group {
            width: 100%;
            justify-content: center;
        }
    }
	/* Remplacer la couleur primaire de Bootstrap par #0FB89F */
    /* Boutons outline primary */
    .btn-outline-primary {
        color: #0FB89F;
        border-color: #0FB89F;
    }

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active,
    .btn-outline-primary.active {
        background-color: #0FB89F;
        border-color: #0FB89F;
        color: white;
    }

    /* Badges avec fond primary */
    .bg-primary,
    .badge.bg-primary,
    .btn-primary {
        background-color: #0FB89F !important;
        border-color: #0FB89F !important;
    }
    
    /* Style pour le pied de page de la modal avec les contrôles du lecteur */
    .info-modal-footer {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0 0 12px 12px;
        position: sticky;
        bottom: 0;
        display: flex;
        justify-content: center; /* Centrer les contrôles */
    }

    .modal-player-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }
    
    /* Style pour la section de piste dans la modal */
    .modal-track-section {
        margin-bottom: 20px;
        padding: 15px;
        background-color: var(--secondary-color);
        border-radius: 8px;
    }

    .modal-track-composer {
        color: var(--primary-color);
        font-weight: bold;
        font-size: 18px;
        margin-bottom: 5px;
        width: 100%;
    }

    .modal-track-title {
        color: var(--accent-color);
        font-weight: bold;
        font-size: 20px;
        margin-bottom: 10px;
        width: 100%;
    }

    .modal-track-heart {
        margin-top: 10px;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        transition: transform 0.2s, color 0.2s;
    }

    .modal-track-heart:hover {
        transform: scale(1.2);
        color: var(--accent-color);
    }

    .modal-track-heart-fill {
        color: var(--accent-color);
    }
	/* Style pour les lignes d'information */
    .modal-info-line {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        width: 100%;
    }

    .modal-info-label {
        font-weight: bold;
        color: var(--light-bg);
        width: 150px;
        flex-shrink: 0;
    }

    .modal-info-value {
        flex-grow: 1;
        margin-right: 10px;
    }

    /* Style pour la photo avec disque en arrière-plan */
    .modal-info-photo {
			width: 60px;
			height: 60px;
			border-radius: 50%;
			overflow: hidden;
			border: 2px solid var(--primary-color);
			box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
			flex-shrink: 0;
		}

		.modal-info-photo img {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
    
    /* Styles pour la modale de discographie */
    .discography-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 2100; /* Au-dessus des autres modales */
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(4px);
    }

    .discography-modal-content {
        background-color: #212529;
        color: white;
        border-radius: 12px;
        width: 90%;
        max-width: 550px;
        max-height: 85vh;
        overflow-y: auto;
        padding: 0;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
	.discography-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #2c3135;
        border-radius: 12px 12px 0 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .discography-modal-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 0;
        color: var(--primary-color);
    }

    .discography-modal-body {
        padding: 15px 20px;
    }
    
    /* Style pour le pied de page de la modale de discographie */
    .discography-modal-footer {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0 0 12px 12px;
        position: sticky;
        bottom: 0;
        display: flex;
        justify-content: flex-end;
    }

    .btn-show-in-results {
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 16px;
        display: flex;
        align-items: center;
        transition: background-color 0.2s, transform 0.2s;
    }

    .btn-show-in-results:hover {
        background-color: #0ca38c;
        transform: scale(1.05);
    }

    .btn-show-in-results i {
        margin-right: 8px;
    }
    
    /* Animation pour indiquer qu'un élément est cliquable */
    @keyframes pulse-disc {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }

    .modal-info-photo:hover {
        animation: pulse-disc 1s infinite;
    }
    
    /* Style pour le bouton PLAY de la discographie */
    .btn-play-discography {
        width: 40px;
        height: 40px;
        background-color: #E03757; /* Fond rouge */
        color: white;
        border-radius: 50%;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-left: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
	.btn-play-discography:hover {
        transform: scale(1.1);
        background-color: #c92f4b; /* Rouge plus foncé au survol */
    }

    .btn-play-discography i {
        font-size: 20px; /* Taille de l'icône */
    }

    /* Style pour aligner horizontalement le compteur d'œuvres et le bouton play */
    .discography-header-line {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    /* Style pour les éléments de la discographie */
    .discography-item {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 8px;
        background-color: var(--secondary-color);
        transition: all 0.2s;
        cursor: pointer;
    }

    .discography-item:hover {
        transform: translateX(5px);
        background-color: #33383e;
    }

    .discography-item-title {
        color: var(--accent-color);
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .discography-item-composer {
        color: var(--primary-color);
        font-size: 14px;
    }

    .discography-item-artist {
        color: var(--light-bg);
        font-size: 14px;
        font-style: italic;
    }

    @media (max-width: 576px) {
        .modal-info-photo {
            width: 45px;
            height: 45px;
        }
    }
    
    /* Ligne de bas de page avec année et pays */
    .modal-footer-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-year {
        font-style: italic;
        color: var(--light-bg);
    }

    .modal-country {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .modal-country-name {
        margin-right: 10px;
        font-weight: bold;
    }
	::placeholder { 
        color: white !important;
        opacity: 1;
    }

    :-ms-input-placeholder {
        color: white !important;
    }

    ::-ms-input-placeholder {
        color: white !important;
    }
    
    /* Style pour forcer le bouton à droite sur la même ligne */
    .single-line-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
        white-space: nowrap;
        background-color: #0ca38c;
        color: white;
    }

    /* Styles pour l'en-tête */
    .card-header {
        min-height: 40px;
    }
    
    /* S'assurer que le bouton reste visible dans l'input-group */
    .input-group {
        position: relative;
    }

    .input-group .btn-circle-primary#reset-quick-search {
        position: absolute !important;
        right: 8px !important;
        top: 0 !important;
        bottom: 0 !important;
        margin: auto !important;
        height: 22px !important;
        width: 22px !important;
        z-index: 5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important; /* Coins légèrement arrondis au lieu d'un cercle */
        background-color: var(--accent-color) !important;
        transition: background-color 0.2s !important;
    }

    .input-group .btn-circle-primary#reset-quick-search:hover {
        background-color: var(--secondary-color) !important;
    }
    
    .form-control {
        padding-right: 40px;
    }

    /* S'assurer que le bouton a une taille appropriée pour l'élément parent */
    .btn-circle-primary#reset-quick-search {
        font-size: 0.9rem; /* Taille de police réduite */
    }

    /* Responsive design pour mobile */
    @media (max-width: 576px) {
        .input-group .btn-circle-primary#reset-quick-search {
            width: 20px !important;
            height: 20px !important;
            right: 0px !important;
            font-size: 0.8rem !important;
        }
		.card-header h4 {
            top: 23px;
            font-size: 1.2rem !important;
            max-width: 60%;
            font-weight: bold;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .card-header h5 {
			font-size: 1rem;
			font-weight: bold;
			color: white;
			text-align: center;
			margin: 0;
		}
        
        .single-line-btn {
            top: 22px;
            right: 4px;
            padding: 0.15rem 0.3rem !important;
            font-size: 1.1rem !important;
            font-weight: bold;
        }
        
        .single-line-btn i {
            font-size: 0.7rem !important;
        }
        
        .modal-info-label {
            width: 120px;
        }
        
        .modal-info-photo {
            width: 45px;
            height: 45px;
        }
    }

    /* Adaptations responsive */
    @media (max-width: 576px) {
        .app-logo {
            height: 40px;
        }

        .app-header {
            padding: 0.3rem 0; /* Encore moins d'espace en haut sur mobile */
        }
        
        .container.mt-4 {
            margin-top: 60px !important; /* Version mobile */
        }

        .nav-icon i {
            font-size: 26px; /* Version mobile des icônes agrandies */
        }

        #scroll-to-current {
            bottom: 70px; /* Ajustement pour mobile */
            width: 40px;
            height: 40px;
            right: 15px;
            font-size: 20px;
        }

        .scroll-to-top {
            top: 200px; /* Ajustement pour mobile */
            width: 40px;
            height: 40px;
            left: 20px;
        }
        
        body {
            padding-bottom: var(--player-height-mobile);
        }
        
        .track-number {
            font-size: 12px;
        }

        .track-heart {
            font-size: 18px;
        }

        .track-index-container {
            min-width: 40px;
            width: 40px;
        }
		.track-composer, .track-title, .track-artist {
            font-size: 14px;
        }

        .track-info-btn {
            width: 36px;
            height: 36px;
            font-size: 32px;
        }
        
        .modal-info-label {
            width: 120px;
        }
        
        .modal-info-photo {
            width: 45px;
            height: 45px;
        }
        
        .round-player-btn.play-btn {
            width: 50px;
            height: 50px;
        }
        
        .round-player-btn {
            width: 35px;
            height: 35px;
        }
        
        .modal-player-controls {
            gap: 10px;
        }
        
        .audio-control-container {
            gap: 12px;
        }
    }

    /* Version desktop: 4 colonnes pour certains éléments */
    @media (min-width: 768px) {
        .emotions-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
    
    /* CSS supplémentaire pour réduire l'espacement dans la recherche avancée */
    #advanced-search-container {
        padding: 0.5rem !important;
    }

    /* Réduire l'espacement de la grille pour le formulaire de recherche avancée */
    #advanced-search-container .row.g-2 {
        margin-top: -0.25rem !important;
        margin-bottom: -0.25rem !important;
    }

    /* Ajuster la taille des champs select */
    #advanced-search-container .form-select-sm {
        height: calc(1.8em + 0.5rem + 2px);
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        font-size: 0.875rem;
    }

    /* Styles spécifiques pour le nouveau champ de recherche de paroles */
    #lyrics-search {
        background-color: #9370DB;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #lyrics-search:focus {
        background-color: #2c3135;
        color: white;
        box-shadow: 0 0 0 0.25rem rgba(15, 184, 159, 0.25);
        border-color: var(--primary-color);
    }
	/* Style pour la mise en surbrillance des paroles */
	.lyrics-highlight {
		background-color: #9370DB; /* Couleur violette assortie au bouton micro */
		color: white;
		padding: 0 3px;
		border-radius: 3px;
		font-weight: bold;
		box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
		animation: pulse-highlight 2s infinite;
	}

	/* Animation pour faire ressortir les occurrences */
	@keyframes pulse-highlight {
		0% { background-color: #9370DB; }
		50% { background-color: #7B68EE; box-shadow: 0 0 5px rgba(123, 104, 238, 0.7); }
		100% { background-color: #9370DB; }
	}

	/* Style pour l'information de recherche dans les paroles */
	.lyrics-search-info {
		background-color: rgba(147, 112, 219, 0.2);
		padding: 8px 12px;
		border-radius: 6px;
		margin-bottom: 15px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 0.9rem;
	}

	.search-term-count {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.search-term-count i {
		color: #9370DB;
		font-size: 1.1rem;
	}

	/* Ajustement de l'espacement dans la modale des paroles */
	.lyrics-modal-body {
		padding-top: 20px !important;
	}

	.lyrics-content {
		line-height: 1.8;
		white-space: pre-wrap;
	}

	/* Version mobile */
	@media (max-width: 576px) {
		.lyrics-search-info {
			font-size: 0.8rem;
			padding: 6px 8px;
		}

		.lyrics-content {
			font-size: 0.95rem;
		}
	}
/* Styles pour les champs avec datalist */
input[list] {
    background-color: #2c3135;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 30px; /* Espace pour le bouton de réinitialisation */
}

/* Position des boutons de réinitialisation */
#reset-composer-filter, #reset-artist-filter, #reset-chef-filter {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#reset-composer-filter:hover, #reset-artist-filter:hover, #reset-chef-filter:hover {
    background-color: var(--secondary-color);
}

/* Assurer que le champ d'entrée est bien positionné */
.input-group {
    position: relative;
}
/* Correction pour la taille des boutons avec utilisation de !important 
   pour s'assurer que ces règles ont la priorité sur d'autres styles */
#reset-composer-filter, 
#reset-chef-filter,
#reset-artist-filter {
    position: absolute !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 5 !important;
    
    /* Taille fixe avec !important pour surcharger d'autres règles */
    width: 20px !important; 
    height: 20px !important;
    min-width: 16px !important;
    max-width: 22px !important;
    min-height: 16px !important;
    max-height: 22px !important;
    
    font-size: 20px !important;
    padding: 0 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    background-color: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    
    /* Important pour les navigateurs mobiles */
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Décalage du bouton par rapport au bord */
#reset-composer-filter, 
#reset-chef-filter,
#reset-artist-filter {
    right: 5px !important;
}

/* Override spécifique pour mobile */
@media (max-width: 576px) {
    #reset-composer-filter,
	#reset-chef-filter,
    #reset-artist-filter {
        width: 26px !important;
        height: 26px !important;
        min-width: 22px !important;
        max-width: 30px !important;
        min-height: 22px !important;
        max-height: 30px !important;
        font-size: 14px !important;
        right: 5px !important;
		line-height: 1 !important;
    }
    
    /* Assurer un peu plus d'espace pour le texte */
    input[list] {
        padding-right: 22px !important;
    }
}
/* CSS pour la nouvelle disposition */

/* Style pour le séparateur "OU BIEN PAR :" */
.separator-header {
    background-color: #212529; 
    color: antiquewhite; 
    font-weight: bold;
    text-align: center;
    padding: 2px;
    border-radius: 6px 6px 6px 6px;
    margin-top: 8px;
    margin-bottom: 0;
	width: 90%; /* Définit la largeur à 50% du conteneur parent */
    max-width: 400px; /* Limite la largeur maximale à 300px */
    margin-left: auto; /* Ces deux marges auto centrent horizontalement */
    margin-right: auto; /* le séparateur s'il est plus petit que son parent */
}

/* Ajustements pour l'espacement entre les sections */
.search-container {
    margin-bottom: 15px !important;
}

/* S'assurer que la recherche avancée est toujours visible */
#advanced-search-container {
    display: block !important;
    padding: 15px !important;
}

/* Style pour le titre "RECHERCHE APPROFONDIE" */
.search-section-title {
    color: white;
    background-color: #0FB89F;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

/* Réduire l'espacement entre les éléments pour une meilleure densité d'information */
.card {
    margin-bottom: 10px;
}

/* Ajuster le padding des conteneurs de cartes pour plus de cohérence */
.card-body {
    padding: 12px !important;
}

/* S'assurer que les résultats sont bien espacés de la recherche */
.results-container {
    margin-top: 15px;
}

@media (min-width: 768px) {
    /* Sur desktop et tablettes */
    .btn-group[aria-label="Toggle famous"] {
        display: block;
        width: 100%;
        margin-top: 4px;
    }
    
    /* Assure que le groupe de boutons radio s'affiche sous le label */
    label.form-label + .btn-group {
        margin-top: 4px !important;
        display: block;
    }
    
    /* Garantit que le label prend toute la largeur */
    label.form-label.d-block {
        display: block;
        width: 100%;
    }
}

/* Ajuster la taille des boutons radio pour qu'ils s'adaptent à la largeur disponible */
.btn-group[aria-label="Toggle famous"] .btn {
    padding-left: 8px;
    padding-right: 8px;
    flex: 1;
}
