/**
 * -----------------------------------------------------------------------------
 * Fichier CSS : /modules/mongarage/views/css/garage.css
 * -----------------------------------------------------------------------------
 */

/* ==========================================================================
   1. BARRE TOP (HEADER)
   ========================================================================== */
#mon-garage-top-bar {
    background-color: #f0f2f5;
    border: 1px solid #dde2e6;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #3a3a3a;
    margin: 5px;
    z-index: 1030;
}

#mon-garage-top-bar .garage-vehicle .material-icons {
    font-size: 18px;
    color: #2fb5d2;
    margin-right: 5px;
}

#mon-garage-top-bar .garage-vehicle {
    display: inline-flex;
    align-items: center;
}

#mon-garage-top-bar .garage-change-link {
    text-decoration: none;
    font-size: 0.9em;
    color: #2fb5d2;
    font-weight: bold;
    transition: color 0.2s;
}

#mon-garage-top-bar .garage-change-link:hover {
    text-decoration: underline;
    color: #259bb5;
}

#mon-garage-top-bar .garage-label {
    font-weight: normal;
}

/* Bouton suppression */
#garage-delete-btn {
    border-radius: 50%;
    padding: 0.3rem 0.6rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    background: transparent;
    cursor: pointer;
}

#garage-delete-btn .material-icons {
    font-size: 1.1em;
    vertical-align: middle;
    pointer-events: none;
    color: #777;
}

#garage-delete-btn:hover {
    background-color: #ffebee;
    border-color: #ffcdd2;
}

#garage-delete-btn:hover .material-icons {
    color: #c62828;
}

/* ==========================================================================
   2. RÉSUMÉ GARAGE (POPUP OU PAGE)
   ========================================================================== */
.garage-vehicle-card {
    border-bottom: 1px solid #eee;
}
.garage-vehicle-card:last-child {
    border-bottom: none;
}

.garage-vehicle-card-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: #363a41;
    display: flex;
    align-items: center;
    gap: 8px;
}

.garage-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 1.25rem;
}

.garage-product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.garage-product-details {
    flex-grow: 1;
}

.garage-product-details .product-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.garage-product-details .product-attributes {
    font-size: 0.85em;
    color: #7a7a7a;
}

.garage-product-quantity {
    font-weight: 600;
    color: #2fb5d2;
}

/* Ligne info véhicule dans le panier */
.garage-product-line-info {
    margin-top: 8px;
    padding: 5px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
}

.garage-product-line-info .material-icons {
    font-size: 16px;
    color: #2fb5d2;
    margin-right: 6px;
    vertical-align: middle;
}

/* ==========================================================================
   3. BLOC COMPATIBILITÉ (FICHE PRODUIT) - OPTIMISÉ
   ========================================================================== */
#product-compatibility-block {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Alertes de statut (Compatible / Pas compatible) */
.compatibility-check .alert {
    margin-bottom: 0;
    border: none;
    padding: 1rem;
}

.compatibility-check .alert-success {
    background-color: #e8f5e9; /* Vert très clair plus moderne */
    color: #2e7d32;
}

.compatibility-check .alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

.compatibility-check .alert-info {
    background-color: #e3f2fd;
    color: #0277bd;
}

.compatibility-check .icon-status {
    font-size: 24px;
    opacity: 0.9;
}

.compatibility-check .content-status {
    line-height: 1.4;
}

.compatibility-check .alert-heading {
    font-size: 1.1em;
    display: block;
    margin-bottom: 4px;
}

/* Note technique */
.specificity-content {
    font-size: 0.95em;
    margin-top: 2px;
}

/* Accordéon Liste des véhicules */
.compatibility-list-container {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.compatibility-heading {
    cursor: pointer;
    font-size: 1rem; /* Taille raisonnable pour un H3 secondaire */
    font-weight: 600;
    color: #414141;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 8px 5px;
    transition: color 0.3s;
    user-select: none;
}

.compatibility-heading:hover {
    color: #2fb5d2;
}

.compatibility-heading .title-icon {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 8px;
    color: #999;
}
.compatibility-heading:hover .title-icon {
    color: #2fb5d2;
}

.compatibility-heading .toggle-icon {
    transition: transform 0.3s ease;
    color: #bbb;
}

.compatibility-heading[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Liste scrollable */
#collapse-compatibility-list {
    max-height: 350px;
    overflow-y: auto;
    /* Scrollbar fine pour esthétique */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

#collapse-compatibility-list::-webkit-scrollbar {
    width: 6px;
}
#collapse-compatibility-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#collapse-compatibility-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Items de la liste */
.compatibility-list-container .list-group-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-color: #f5f5f5;
    color: #555;
}

.compatibility-list-container .list-group-item:nth-child(odd) {
    background-color: #fafafa; /* Zébrure légère */
}

/* Gras sur la marque pour lisibilité */
/* .vehicle-model {
    font-weight: 600;
    color: #333;
} */

/**
 * ANTI-COPIE (Demande utilisateur)
 * Empêche la sélection de texte, mais n'empêche pas l'indexation Google
 */
.no-copy-list {
  -webkit-user-select: none;
  -moz-user-select: none;   
  -ms-user-select: none;    
  user-select: none;        
}