/* Dispostyle.css – Styles pour la section disponibilité (version responsive) */

.availability-section {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #FF6900;
    font-family: Arial, sans-serif;
}

.availability-section p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #333;
}

.status-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.status-bubble {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.availability-status {
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Couleurs de statut (appliquées par JS) */
.status-green {
    color: #28a745;
}
.status-orange {
    color: #fd7e14;
}
.status-red {
    color: #dc3545;
}

/* Couleurs de bulle associées */
.bubble-green {
    background-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}
.bubble-orange {
    background-color: #fd7e14;
    box-shadow: 0 0 5px rgba(253, 126, 20, 0.3);
}
.bubble-red {
    background-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.stock-number {
    color: #666;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.city-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #00235A;
    font-size: 0.9rem;
    background: #e9f0f9;
    padding: 2px 8px 2px 4px;
    border-radius: 20px;
    white-space: nowrap;
}

.city-indicator svg {
    width: 14px;
    height: 14px;
    fill: #00235A;
    flex-shrink: 0;
}

/* ===== RESPONSIVE POUR MOBILE ===== */
@media (max-width: 480px) {
    .status-wrapper {
        gap: 6px;
    }
    
    .availability-status {
        font-size: 0.95rem;
    }
    
    .stock-number {
        font-size: 0.85rem;
        padding: 2px 6px;
    }
    
    .city-indicator {
        font-size: 0.85rem;
        padding: 2px 6px 2px 3px;
        white-space: nowrap; /* on garde le texte sur une ligne */
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .city-indicator svg {
        width: 12px;
        height: 12px;
    }
}

/* Pour les très petits écrans (moins de 360px) */
@media (max-width: 360px) {
    .status-wrapper {
        gap: 4px;
    }
    
    .city-indicator {
        font-size: 0.8rem;
    }
}