/* ============================================
   BOUTON RETOUR DANS LE FIL D'ARIANE
============================================ */

/* Style du bouton Retour */
.breadcrumb-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 6px;
    background-color: var(--dark-color);
    color: var(--light-color) !important;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    transition: background-color 0.3s ease;
    gap: 6px;
    white-space: nowrap;
    margin-bottom: 5px;
    line-height: 1.4; /* Aligner avec les autres boutons */
    min-height: 32px; /* Hauteur minimale pour correspondre aux autres éléments */
}

.breadcrumb-back-btn:hover {
    background-color: #555;
}

/* Icône de la flèche */
.breadcrumb-back-btn svg {
    fill: var(--light-color);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mode sombre */
.dark-mode .breadcrumb-back-btn {
    background-color: #444;
    color: var(--text-color) !important;
}

.dark-mode .breadcrumb-back-btn svg {
    fill: var(--text-color);
}

.dark-mode .breadcrumb-back-btn:hover {
    background-color: #888;
    color: white !important;
}

.dark-mode .breadcrumb-back-btn:hover svg {
    fill: white;
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .breadcrumb-back-btn {
        padding: 5px 14px;
    }
}

/* Responsive - Mobile : afficher uniquement l'icône */
@media (max-width: 480px) {
    .breadcrumb-back-btn {
        padding: 8px 10px; /* Padding adapté pour l'icône seule */
        min-width: 36px; /* Largeur minimale pour un bon toucher */
        justify-content: center;
    }
    
    /* Masquer le texte "Retour" */
    .breadcrumb-back-btn span {
        display: none;
    }
    
    /* Ajuster la taille de l'icône pour mobile */
    .breadcrumb-back-btn svg {
        width: 20px;
        height: 20px;
    }
}
